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

Last Month in PHP - July 2012

Last Month in PHP - July 2012

Brief overview of important news stories and happenings in the PHP community in the previous month before this presentation was delivered.

Delivered at Kansas City PHP User Group on July 21, 2012

John Kary

July 21, 2012
Tweet

More Decks by John Kary

Other Decks in Programming

Transcript

  1. Last Month in PHP
    July 21, 2012
    Kansas City PHP User Group
    John Kary
    @johnkary
    Slides: http://johnkary.net/talks

    View Slide

  2. Releases

    View Slide

  3. New PHP versions
    • PHP 5.4.5
    • PHP 5.3.15

    View Slide

  4. Symfony 2.1
    Beta3
    • Last Beta
    • Form & Validator component improvements

    View Slide

  5. Zend Framework 2
    Beta5
    • Last Beta
    • Encoder - OWASP-compliant for context-specific escaping
    • i18n - uses intl extension for localization & translation
    • Form - annotation support via Doctrine\Common

    View Slide

  6. jQuery 1.8
    Beta 1 & 2
    • Modules - custom builds
    • ajax, css, dimensions, effects, offset
    • Rewrite Sizzle - CSS selector engine
    • CSS prefixing

    View Slide

  7. New Developments

    View Slide

  8. jQuery 1.9
    • Last to support < IE9
    • Release: Early 2013
    • Remove deprecated 1.8
    jQuery 2.0
    • Drop support < IE9
    • Release: Shortly after 1.9
    • Same API as 1.9
    http://blog.jquery.com/2012/06/28/jquery-core-version-1-9-and-beyond/
    Interchangeable API
    If you need IE 6/7/8 support: use 1.9
    If you only want IE 9+: use 2.0

    View Slide

  9. Composer - Installers
    Install modules/libraries/plugins in older applications
    • Lithium
    • Magento
    • phpBB
    • PPI
    • Symfony 1
    • WordPress
    • Zend
    • CakePHP 2+
    • CodeIgniter
    • Drupal
    • FuelPHP
    • Joomla
    • Laravel

    View Slide

  10. Composer - Installers
    You found my Drupal module `johnkary/acl` on Packagist.org
    # ./acl/composer.json
    {
    "name": "johnkary/acl",
    "type": "drupal-module",
    "require": {
    "composer/installers": "*"
    }
    }
    You search Packagist for an Access Control List module

    View Slide

  11. Composer - Installers
    # ./yourproject/composer.json
    {
    "require": {
    "johnkary/acl": "*"
    }
    }
    Add `johnkary/acl` to your project’s composer.json
    (master) ~/Sites/drupal $ composer.phar install
    Downloads and installs the acl module:
    ~/Sites/drupal/modules/acl

    View Slide

  12. Composer Webcast
    Composer: Putting Dependencies on the Score
    Presenter : Rafael Dohms
    August 8, 2012
    http://www.phparch.com/phparchitect-presents-webcasts-for-busy-php-developers/
    FREE!

    View Slide

  13. Notable Links

    View Slide

  14. What PHP 5.5 might look like
    • Windows XP and 2003 support dropped
    • /e modifier deprecated
    • boolval() - works exactly like (bool) casting
    • hash_pbkdf2() - native implementation of PBKDF2
    • NATIVE - no need for mcrypt extension
    • empty() works with function calls (and other expressions)
    • if (empty($db->getPassword()))
    What’s in for sure?
    http://nikic.github.com/2012/07/10/What-PHP-5-5-might-look-like.html

    View Slide

  15. View Slide

  16. PHPMentoring.org
    • Championed by Elizabeth Marie Smith
    • Better known as @auroraeosrose
    • Ideas spawned by her talk at Lone Star PHP
    “Padawan and Master - Mentoring Developers”
    • Guide mentors and apprentices

    View Slide

  17. View Slide

  18. PHP: The Right Way
    • Community-crafted - 35 contributors
    • Created by Josh Lockhart - @codeguy
    • Inspired by many of the negative articles surrounding PHP lately
    An easy-to-read, quick reference for PHP
    best practices, accepted coding standards, and
    links to authoritative tutorials around the Web.
    phptherightway.com

    View Slide

  19. fin
    http://johnkary.net/talks

    View Slide