Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Silex como framework MVC@asiermarquesSimettric.com + 4visionshq.comunconference
SilexMicroframework PHP– Lo mínimo para dar una solución– Sencillo– Minimalismo– Pragmatismo
La esencia del desarrollo webRequestGET /uriResponseStatus Code: 200Content-Type: text/html
Lo que se suele escuchar…Silex es para proyectos pequeños.Symfony2 es para proyectos grandes.
Dustin Whittle“Use silex if you arecomfortable with making allof your own architecturedecisions and full stackSymfony2 if ...
Fabien Potencier“A micro-framework is just about the bareminimum you need to get started. It letsyou decide which director...
Symfony2 VS SilexLa visión de Symfony2 es ahorrar la mayorproblemática posible al desarrollador.La visión de Silex es reso...
Speakerin.com & Silex
SpeakerIn.com• Desarrollado en 48horas en un #hackmitéhackmite.elcomite.org• Por dos personas: @fran_mosteiro y yo.– Vinie...
Conclusiones• Terminamos el proyecto con éxito.http://speakerin.com• Usamos los proveedores básicos: sesión, swiftmailerpa...
Demo
ServiceProviders
Los más comunes• Session• Form• SwiftMailer• Doctrine DBAL• Twig• Security
Security Service Provider• Firewalls• UserProvider• ACL
SilexApplication extends PimpleTodo es un $app[servicio]http://pimple.sensiolabs.org
Escalar Silex• Estructura de directorios– composer.phar create-project fabpot/silex-skeleton• Controladores como clases– $...
Grupos de rutas$blog = $app[controllers_factory];$blog->get(/, function() { … });$blog->post(/nuevo, function() { … });$bl...
HTTP Caché$app[cache]->run();• Proxy cache escrito en PHP• Soporta cabeceras y directrices de caché deHTTP• Soporte para ESI
HTTP Caché: ESIPermiten incrustar código en nuestro HTML desde otra ubicación (url)
HTTP Caché: ESIPermiten incrustar código en nuestro HTML desde otra ubicación (url)/account/user-vcard/cart/resume
Opciones de ORMPor defecto, ningún ServiceProvider oficial.Doctrine:dflydev-doctrine-orm-service-providerPropel:PropelServ...
Gracias!@asiermarques
Silex para aplicaciones web MVC
Silex para aplicaciones web MVC
Silex para aplicaciones web MVC
Silex para aplicaciones web MVC
Silex para aplicaciones web MVC
Upcoming SlideShare
Loading in …5
×

Silex para aplicaciones web MVC

2,290 views

Published on

Mi charla en la unconference de DeSymfony2013.

  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://shorturl.at/mzUV6 } ......................................................................................................................... Download Full EPUB Ebook here { http://shorturl.at/mzUV6 } ......................................................................................................................... Download Full doc Ebook here { http://shorturl.at/mzUV6 } ......................................................................................................................... Download PDF EBOOK here { http://shorturl.at/mzUV6 } ......................................................................................................................... Download EPUB Ebook here { http://shorturl.at/mzUV6 } ......................................................................................................................... Download doc Ebook here { http://shorturl.at/mzUV6 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • If you want to download or read this book, Copy link or url below in the New tab ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THI5 BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Silex para aplicaciones web MVC

  1. 1. Silex como framework MVC@asiermarquesSimettric.com + 4visionshq.comunconference
  2. 2. SilexMicroframework PHP– Lo mínimo para dar una solución– Sencillo– Minimalismo– Pragmatismo
  3. 3. La esencia del desarrollo webRequestGET /uriResponseStatus Code: 200Content-Type: text/html
  4. 4. Lo que se suele escuchar…Silex es para proyectos pequeños.Symfony2 es para proyectos grandes.
  5. 5. Dustin Whittle“Use silex if you arecomfortable with making allof your own architecturedecisions and full stackSymfony2 if not.”
  6. 6. Fabien Potencier“A micro-framework is just about the bareminimum you need to get started. It letsyou decide which directory structure youwant, it lets you decide which feature youwant to enable, it lets decide how youwant to work.”
  7. 7. Symfony2 VS SilexLa visión de Symfony2 es ahorrar la mayorproblemática posible al desarrollador.La visión de Silex es resolver la menorproblemática posible al desarrollador.Con Silex no se piensa tanto en cómo trabajarcon el framework para resolver problemas.
  8. 8. Speakerin.com & Silex
  9. 9. SpeakerIn.com• Desarrollado en 48horas en un #hackmitéhackmite.elcomite.org• Por dos personas: @fran_mosteiro y yo.– Viniendo de Java, Fran no tenía experiencia previa en php.• Elegimos Silex.– Porque somos de Bilbao, pero no tanto.
  10. 10. Conclusiones• Terminamos el proyecto con éxito.http://speakerin.com• Usamos los proveedores básicos: sesión, swiftmailerpara conectar con mandrill.com.• Paris & Idiorm, como ORM.• No usamos el componente de seguridad.• No usamos controladores como clases.
  11. 11. Demo
  12. 12. ServiceProviders
  13. 13. Los más comunes• Session• Form• SwiftMailer• Doctrine DBAL• Twig• Security
  14. 14. Security Service Provider• Firewalls• UserProvider• ACL
  15. 15. SilexApplication extends PimpleTodo es un $app[servicio]http://pimple.sensiolabs.org
  16. 16. Escalar Silex• Estructura de directorios– composer.phar create-project fabpot/silex-skeleton• Controladores como clases– $app->get(/, NamespaceControlador::acción);• Grupos de rutas• Caché HTTP• ORM
  17. 17. Grupos de rutas$blog = $app[controllers_factory];$blog->get(/, function() { … });$blog->post(/nuevo, function() { … });$blog->get(/comentarios, function() { … });$app->mount(/blog, $blog);
  18. 18. HTTP Caché$app[cache]->run();• Proxy cache escrito en PHP• Soporta cabeceras y directrices de caché deHTTP• Soporte para ESI
  19. 19. HTTP Caché: ESIPermiten incrustar código en nuestro HTML desde otra ubicación (url)
  20. 20. HTTP Caché: ESIPermiten incrustar código en nuestro HTML desde otra ubicación (url)/account/user-vcard/cart/resume
  21. 21. Opciones de ORMPor defecto, ningún ServiceProvider oficial.Doctrine:dflydev-doctrine-orm-service-providerPropel:PropelServiceProvider (oficial de Propel)
  22. 22. Gracias!@asiermarques

×