This document summarizes Jake Smith's presentation on micro-frameworks for PHP given at Dallas PHP on 4/12/2011. It introduces Jake and the topic of micro-frameworks, then provides overviews of several popular PHP micro-frameworks: Minimum, Silex, Limonade, and Slim. For each framework, it lists the website, required PHP version, provides a brief example app, and calls out pros and cons. The goal is to help attendees understand what micro-frameworks are and compare options.
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
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
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