Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Rapid Prototyping with PHP

Rapid Prototyping with PHP

The world of TDD, BDD and frameworks in PHP-land

Michael Cheng

January 25, 2013
Tweet

More Decks by Michael Cheng

Other Decks in Programming

Transcript

  1. Rapid Prototyping with PHP The world of TDD, BDD and

    frameworks in PHP-land 1 Friday, 25 January, 13
  2. Challenges of Rapid Prototyping • Build once and run everywhere

    • Responsive web apps • Mobile apps • Use same backend - usually a REST service • Something that PHP is particularly good at 3 Friday, 25 January, 13
  3. Phases 1. HTML mockups • eg. Backbone JS, Angular JS

    2. Stub web services • Return dummy payload. 3. Final working web services 4 Friday, 25 January, 13
  4. Doing PHP right • Use a framework • Use Composer

    libraries for lower level functionalities (don't reinvent the wheel) • Keep it clean. Doesn't need to scale immediately. • Adhere to coding standards - PSR-0, 1, 2 • Practice TDD, BDD (if you can) 5 Friday, 25 January, 13
  5. Full-Stack Frameworks • CakePHP (http://www.cakephp.org) • Lithium (http://lithify.me/) • CodeIgniter

    (http://www.codeigniter.com) • Kohana, FuelPHP • Symfony (http://symfony.com/) • SilverStripe (http://www.silverstripe.org/) 6 Friday, 25 January, 13
  6. Common Standards • PHP Framework Interop Group (http://www.php-fig.org/) • PSR-0:

    Autoloading Standard • PSR-1: Basic Coding Standard • PSR-2: Coding Style Guide • PSR-3: Logger Interface 10 Friday, 25 January, 13
  7. Hosting PHP • Its everywhere! • AppFog (http://appfog.com) • Windows

    Azure (http://windowsazure.com) 11 Friday, 25 January, 13