SlideShare a Scribd company logo
Intro to Micro-frameworks
                 Jake Smith
                 Dallas PHP - 4/12/2011




Thursday, April 14, 2011
Who is Jake?

                      • PHP 5.3 ZCE
                      • Co-Organizer of DallasPHP
                      • Co-Organizer of Lone Star PHP
                      • Your tour on this magical journey called
                           Micro-frameworks



Thursday, April 14, 2011
Introducing the first annual
                                 PHP Conference in North Texas
               Join us for this day-long event and hear the best local speakers from the Lone Star State.



                   Register Now
                                                       http://lonestarphp.com
                           $60
Thursday, April 14, 2011
What is a Micro-
                            framework?

                      • Simple, no full stack bloat
                      • Single Page (usually)


Thursday, April 14, 2011
What to expect

                      • Routing
                      • HTTP Request/Response
                      • RESTful
                      • Template Engine or choice of none
                      • Helpers and extensions

Thursday, April 14, 2011
Why should I use it?



Thursday, April 14, 2011
Fishing with dynamite?


                      • Simple site built using ZF/Symfony/Cake



Thursday, April 14, 2011
Small Sites

                      • Landing Page
                      • Micro Site
                      • Quiz/Campaign
                      • API
                      • Prototyping/Proof of Concept

Thursday, April 14, 2011
Legacy of Sinatra




Thursday, April 14, 2011
No...This Sinatra


                               require 'sinatra'
                               get '/hi' do
                                 "Hello World!"
                               end




Thursday, April 14, 2011
Sinatra Background

                      • Minimalist
                      • Extensible
                      • Sinatra is not Rails


Thursday, April 14, 2011
PHP Micro-frameworks



Thursday, April 14, 2011
Minimum



Thursday, April 14, 2011
Minimum Profile

                      • http://jamalsa.tumblr.com/post/1521361137/
                           lithify-it-like-sinatra
                      • PHP: 5.3.x
                      • Proof of Concept


Thursday, April 14, 2011
Minimum App



Thursday, April 14, 2011
Minimum Pros

                      • Built using lithium
                      • Simple to get started
                      • Filters


Thursday, April 14, 2011
Minimum Cons

                      • More of a Proof of Concept
                      • No documentation, besides that of Lithium
                      • Limited feature set


Thursday, April 14, 2011
Silex



Thursday, April 14, 2011
Silex Profile


                      • http://silex-project.org/
                      • PHP: 5.3.x


Thursday, April 14, 2011
Silex App



Thursday, April 14, 2011
Silex Pros
                      • Great Documentation (just recently
                           released)
                      • Easy to get started (PHAR)
                      • Unit Test Integration
                      • Built using Symfony2 libraries
                      • Easily extendable
Thursday, April 14, 2011
Silex Cons


                      • Utilizing Service Container can be good,
                           but gets complex quick
                      • Built using Symfony2 libraries


Thursday, April 14, 2011
Limonade



Thursday, April 14, 2011
Limonade Profile


                      • http://www.limonade-php.net/
                      • PHP: 5.1.x


Thursday, April 14, 2011
Limonade App



Thursday, April 14, 2011
Limonade Pros

                      • Longevity
                      • Isn’t PHP 5.3 only
                      • Actively updated
                      • Plenty of helper functions
                       • txt, html, json, etc.

Thursday, April 14, 2011
Limonade Cons

                      • Not OOP
                      • Syntax is not as clean
                      • Not using PHPUnit for Unit Testing


Thursday, April 14, 2011
Slim



Thursday, April 14, 2011
Slim Profile

                      • http://www.slimframework.com/
                      • PHP 5.1.x
                       • Uses Closures if 5.3.x


Thursday, April 14, 2011
Slim App



Thursday, April 14, 2011
Slim Pros
                      • Amazing Documentation, but all on Github
                           Pages
                      • Very active development, can talk with
                           creator almost any time
                      • Works in 5.1.X, but utilizes closures
                      • Easy/Extensive template engine support
                       • Twig, Haanga, Smarty, Mustache, etc.
Thursday, April 14, 2011
Slim Cons


                      • Requires mcrypt for signed sessions
                      • Needs more exception handling, unwritable
                           logs directory




Thursday, April 14, 2011
Questions? Concerns?



Thursday, April 14, 2011
Thanks for listening
           Contact Information
           [t]: @jakefolio
           [e]: jake@phpdallas.org
           [w]: http://www.jakefolio.com
           [irc]: #dallasphp




Thursday, April 14, 2011

More Related Content

PDF
Introducing Cloud9 at DynCon 2011
PDF
Developers! Y U No Open Source Ur Code?
PDF
Javascript Views, Client-side or Server-side with NodeJS
PDF
Notebook
PDF
Keynote ujihisa.vim#2
PDF
Are Your Tests Really Helping You?
PDF
Twitter streamingapi rubymongodbv2
PDF
Oop design magma rails 2011
Introducing Cloud9 at DynCon 2011
Developers! Y U No Open Source Ur Code?
Javascript Views, Client-side or Server-side with NodeJS
Notebook
Keynote ujihisa.vim#2
Are Your Tests Really Helping You?
Twitter streamingapi rubymongodbv2
Oop design magma rails 2011

Similar to Intro to Micro-frameworks (20)

PDF
The Easy Way - Plone Conference 2011
PDF
Building Languages for the JVM - StarTechConf 2011
PDF
Using+javascript+to+build+native+i os+applications
PDF
Sinsai.info quick introduction
PDF
Milkyway@home rcos presentation_4_8_2011
PDF
Carton CPAN dependency manager
PDF
Puppet camp europe 2011 hackability
PDF
Node js techtalksto
PDF
HTML5 and jQuery for Flex Developers
PDF
Intridea & open source
PDF
Railsify your web development
PDF
Atlassian RoadTrip 2011 Slide Deck
PDF
High quality iOS development
PDF
Namesmatter
PDF
DevOps Introduction @Cegeka
PDF
Open source jura CBS (03 11-2010)
PDF
You're doing it wrong
PDF
How to Podcast Your Passion
PDF
eZ Publish Free Developer Basics Training - London - 2011 April 13th by Nicol...
PDF
Education 2.3 m erwin
The Easy Way - Plone Conference 2011
Building Languages for the JVM - StarTechConf 2011
Using+javascript+to+build+native+i os+applications
Sinsai.info quick introduction
Milkyway@home rcos presentation_4_8_2011
Carton CPAN dependency manager
Puppet camp europe 2011 hackability
Node js techtalksto
HTML5 and jQuery for Flex Developers
Intridea & open source
Railsify your web development
Atlassian RoadTrip 2011 Slide Deck
High quality iOS development
Namesmatter
DevOps Introduction @Cegeka
Open source jura CBS (03 11-2010)
You're doing it wrong
How to Podcast Your Passion
eZ Publish Free Developer Basics Training - London - 2011 April 13th by Nicol...
Education 2.3 m erwin
Ad

More from jsmith92 (6)

PDF
Unsung Heroes of PHP
PDF
Doing more with LESS
PDF
SPL: The Missing Link in Development
PDF
PHP 5.3 Overview
PDF
LESS is More
PDF
Drawing the Line with Browser Compatibility
Unsung Heroes of PHP
Doing more with LESS
SPL: The Missing Link in Development
PHP 5.3 Overview
LESS is More
Drawing the Line with Browser Compatibility
Ad

Recently uploaded (20)

PPTX
Cloud computing and distributed systems.
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
Spectroscopy.pptx food analysis technology
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
A Presentation on Artificial Intelligence
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
cuic standard and advanced reporting.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
Cloud computing and distributed systems.
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
NewMind AI Weekly Chronicles - August'25-Week II
Spectroscopy.pptx food analysis technology
Diabetes mellitus diagnosis method based random forest with bat algorithm
The Rise and Fall of 3GPP – Time for a Sabbatical?
Mobile App Security Testing_ A Comprehensive Guide.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
A Presentation on Artificial Intelligence
The AUB Centre for AI in Media Proposal.docx
Spectral efficient network and resource selection model in 5G networks
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Chapter 3 Spatial Domain Image Processing.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
cuic standard and advanced reporting.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Digital-Transformation-Roadmap-for-Companies.pptx

Intro to Micro-frameworks

  • 1. Intro to Micro-frameworks Jake Smith Dallas PHP - 4/12/2011 Thursday, April 14, 2011
  • 2. Who is Jake? • PHP 5.3 ZCE • Co-Organizer of DallasPHP • Co-Organizer of Lone Star PHP • Your tour on this magical journey called Micro-frameworks Thursday, April 14, 2011
  • 3. Introducing the first annual PHP Conference in North Texas Join us for this day-long event and hear the best local speakers from the Lone Star State. Register Now http://lonestarphp.com $60 Thursday, April 14, 2011
  • 4. What is a Micro- framework? • Simple, no full stack bloat • Single Page (usually) Thursday, April 14, 2011
  • 5. What to expect • Routing • HTTP Request/Response • RESTful • Template Engine or choice of none • Helpers and extensions Thursday, April 14, 2011
  • 6. Why should I use it? Thursday, April 14, 2011
  • 7. Fishing with dynamite? • Simple site built using ZF/Symfony/Cake Thursday, April 14, 2011
  • 8. Small Sites • Landing Page • Micro Site • Quiz/Campaign • API • Prototyping/Proof of Concept Thursday, April 14, 2011
  • 10. No...This Sinatra require 'sinatra' get '/hi' do "Hello World!" end Thursday, April 14, 2011
  • 11. Sinatra Background • Minimalist • Extensible • Sinatra is not Rails Thursday, April 14, 2011
  • 14. Minimum Profile • http://jamalsa.tumblr.com/post/1521361137/ lithify-it-like-sinatra • PHP: 5.3.x • Proof of Concept Thursday, April 14, 2011
  • 16. Minimum Pros • Built using lithium • Simple to get started • Filters Thursday, April 14, 2011
  • 17. Minimum Cons • More of a Proof of Concept • No documentation, besides that of Lithium • Limited feature set Thursday, April 14, 2011
  • 19. Silex Profile • http://silex-project.org/ • PHP: 5.3.x Thursday, April 14, 2011
  • 21. Silex Pros • Great Documentation (just recently released) • Easy to get started (PHAR) • Unit Test Integration • Built using Symfony2 libraries • Easily extendable Thursday, April 14, 2011
  • 22. Silex Cons • Utilizing Service Container can be good, but gets complex quick • Built using Symfony2 libraries Thursday, April 14, 2011
  • 24. Limonade Profile • http://www.limonade-php.net/ • PHP: 5.1.x Thursday, April 14, 2011
  • 26. Limonade Pros • Longevity • Isn’t PHP 5.3 only • Actively updated • Plenty of helper functions • txt, html, json, etc. Thursday, April 14, 2011
  • 27. Limonade Cons • Not OOP • Syntax is not as clean • Not using PHPUnit for Unit Testing Thursday, April 14, 2011
  • 29. Slim Profile • http://www.slimframework.com/ • PHP 5.1.x • Uses Closures if 5.3.x Thursday, April 14, 2011
  • 31. Slim Pros • Amazing Documentation, but all on Github Pages • Very active development, can talk with creator almost any time • Works in 5.1.X, but utilizes closures • Easy/Extensive template engine support • Twig, Haanga, Smarty, Mustache, etc. Thursday, April 14, 2011
  • 32. Slim Cons • Requires mcrypt for signed sessions • Needs more exception handling, unwritable logs directory Thursday, April 14, 2011
  • 34. Thanks for listening Contact Information [t]: @jakefolio [e]: jake@phpdallas.org [w]: http://www.jakefolio.com [irc]: #dallasphp Thursday, April 14, 2011