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

PHP FIG: Breaking the Boundaries (PHP Conf Asia)

PHP FIG: Breaking the Boundaries (PHP Conf Asia)

Michael C.

August 23, 2016
Tweet

More Decks by Michael C.

Other Decks in Technology

Transcript

  1. ME?

  2. PSR-6: CACHING $america = $cachePool->hasItem('trumpPresidency'); // FALSE $paulD = $cachePool->getItem('PaulDragoonisStatus');

    // CacheItem Object $paulD->get(); // 'Working on his slides' $paulD->set('Panicking') $paulD->expiresAfter('86400'); $cachePool->save($paulD);
  3. HUGS interface Huggable { /** * Hugs this object. *

    * All hugs are mutual. An object that is hugged MUST in turn hug the * other object back by calling hug() on the first parameter. */ public function hug(Huggable $h); }
  4. PSR-11: CONTAINER INTERFACE /** * Describes the interface of a

    container that exposes methods to read its entries. */ interface ContainerInterface { /** * Finds an entry of the container by its identifier and returns it. * */ public function get($id); /** * Returns true if the container can return an entry for the given identifier. * Returns false otherwise. * */ public function has($id); }
  5. ▸Aura ▸CakePHP ▸Composer ▸Doctrine ▸Drupal ▸Joomla ▸Laravel ▸Magento PSR-1 AND

    PSR-2 PROJECTS ▸Phing ▸phpBB ▸PPI ▸Slim ▸Stash ▸Symfony ▸PHP League ▸PHP Unit ▸Yii ▸Zend Framework ▸Zikula ▸Guzzle ▸Goutte ▸Silex ▸Monolog ▸Faker