Future of PHP
Upcoming SlideShare
Loading in...5
×
 

Future of PHP

on

  • 7,069 views

PHP is changing from a simple template-ing language and html decorator to a fully fledged server side language.

PHP is changing from a simple template-ing language and html decorator to a fully fledged server side language.

Statistics

Views

Total Views
7,069
Views on SlideShare
6,865
Embed Views
204

Actions

Likes
8
Downloads
33
Comments
0

2 Embeds 204

http://www.scoop.it 179
https://twitter.com 25

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Future of PHP Future of PHP Presentation Transcript

  • RICHARD MCINTYRE• Freelance Web Developer• Works at BBC Mobile Core Engineering• Committer to the Lithium Framework• Lived for 15 years in Japan• Finished Leeds Half in 1:51• Twitter: @mackstar
  • THE FUTURE OF PHP And how this applies to you
  • <div class="entry"> <h1>{{title}}</h1> <div class="body"> {{{body}}} </div>
  • Handlebars<div class="entry"> <h1>{{title}}</h1> <div class="body"> {{{body}}} </div>
  • Hello {{name}}You have just won ${{value}}!{{#in_ca}}Well, ${{taxed_value}}, after taxes.{{/in_ca}}
  • MoustacheHello {{name}}You have just won ${{value}}!{{#in_ca}}Well, ${{taxed_value}}, after taxes.{{/in_ca}}
  • PHP’S BACKGROUND Where we have come from
  • DEVICES
  • DEVICESJavascript is super portable
  • PILE OF SHIT
  • ARE YOU STILL USING PHP BASED PARTIALS FOR LOADING AJAX?
  • TWITTER.COM - XHR
  • JAVASCRIPT FRAMEWORKS• Backbone.js • Meteor.js• Ember.js• Sproutcore• Google closure• Javascript MVC• Cappucino
  • The key to being a good JavaScript programmer is being able to laugh at, and understand the significance of, this image.
  • PHPFront Back End End
  • YOUR APPS NEED TOBE AVAILABLE AS API’S
  • Show code
  • Silex Show code
  • Silex Show code
  • Silexrequire_once __DIR__./silex.phar;$app = new SilexApplication();$app->get(/hello/{name}, function($name) use($app) { return Hello .$app->escape($name);});$app->run(); Show code
  • Slim
  • Slim
  • Slimrequire Slim/Slim.php;$app = new Slim();$app->get(/hello/:name, function ($name) { echo "Hello, $name!";});$app->run();
  • Flight
  • Flight
  • Flightrequire flight/Flight.php;Flight::route(/, function(){ echo hello world!;});Flight::start();
  • Limonade???require_once vendors/limonade.php;dispatch(/, hello); function hello() { return Hello world!; }run();
  • Limonade???require_once vendors/limonade.php;dispatch(/, hello); function hello() { return Hello world!; }run();
  • Lithium #li3 (My Precious)
  • // GET requestRouter::connect("/create", array("http:method" => "GET"), function($request){ // Do something and return Response object });// POST requestRouter::connect("/create", array("http:method" => "POST"), function($request){ // Do something and return Response object });
  • // PUT requestRouter::connect("/create", array("http:method" => "PUT"), function($request){ // Do something and return Response object });// DELETE requestRouter::connect("/create", array("http:method" => "DELETE"), function($request){ // Do something and return Response object }); Show code
  • ARE YOU A SLAVE? to the technology you use...
  • <?php define(‘SLAVERY’, ‘your shit here’); ?>
  • === ‘SLAVERY’ Show code
  • === ‘SLAVERY’
  • Your favorite framework === ‘SLAVERY’
  • ADVANCES IN PHP LANGUAGE
  • YOU CAN CHOOSE MORE than 1 framework
  • PSR-0An agreement to use namespaces or spaces to expose your directory structure
  • 3 FRAMEWORKS IN 1 APPhttp://www.slideshare.net/weaverryan/a-php-christmas- miracle-3-frameworks-1-app Actually Java and Python have had this all along...
  • CLICommand Line Interface
  • PHP IS A FULLY FLEDGED back end programming language
  • PHPFront More Solutions Back End Bridge End
  • NODE.JSSome thoughts....
  • ARE YOU A BACK END PHP NINJA?
  • ARE YOU A BACK END PHP NINJA? Specialist
  • WELL ROUNDED COOL GUY
  • WELL ROUNDED COOL GUY Generalist
  • ARE YOU MULTI-LINGUAL?
  • ARE YOU MULTI-LINGUAL? Language agnostic
  • CAN YOU KICK ASS IN A FIGHT?
  • CAN YOU KICK ASS IN A FIGHT? Stand up for PHP
  • Testing
  • Testing Version Control
  • Testing Version Control Reading other peoples code
  • Testing Version Control Reading other peoples codeDocumentation
  • Testing Version Control Reading other peoples codeUsing other libraries Documentation
  • Testing Version Control Reading other peoples codeUsing other libraries Documentation Continuous integration
  • Testing Version Control Reading other peoples codeUsing other libraries Documentation Caching Continuous integration
  • Testing Version Control Reading other peoples codeUsing other libraries Build Tools Documentation Caching Continuous integration
  • Testing Version Control Reading other peoples codeUsing other libraries Build Tools Performance Documentation Caching Continuous integration
  • Testing Version Control Reading other peoples codeUsing other libraries Build Tools Performance Documentation Having others read your code Caching Continuous integration