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

PHP FIG: The PSRs you've never heard of PHP UK

Michael C.
February 17, 2016

PHP FIG: The PSRs you've never heard of PHP UK

Michael C.

February 17, 2016
Tweet

More Decks by Michael C.

Other Decks in Technology

Transcript

  1. michaelcullumuk phpBB Propel Symfony PPI concrete5 Zend Framework Magento Yii

    Assetic PHP League Cake PHP Composer Doctrine eZ Publish Flow/Typo3 ReactPHP Joomla Lithium Laravel PEAR phpDocumenter Drupal PyroCMS IMBi Toolkit Horde Slim
  2. michaelcullumuk <?php namespace Psr\Log; interface LoggerInterface { public function emergency($message,

    array $context = array()); public function alert($message, array $context = array()); public function critical($message, array $context = array()); public function error($message, array $context = array()); public function warning($message, array $context = array()); public function notice($message, array $context = array()); public function info($message, array $context = array()); public function debug($message, array $context = array()); public function log($level, $message, array $context = array()); }
  3. michaelcullumuk FULLY QUALIFIED CLASS NAME NAMESPACE PREFIX BASE DIRECTORY RESULTING

    FILE PATH \Acme\Log\Writer\File_Writer Acme\Log\Writer ./acme-log-writer/lib/ ./acme-log-writer/lib/File_Writer.php \Aura\Web\Response\Status Aura\Web /path/to/aura-web/src/ /path/to/aura- web/src/Response/Status.php \Symfony\Core\Request Symfony\Core ./vendor/Symfony/Core/ ./vendor/Symfony/Core/Request.php \Zend\Acl Zend /usr/includes/Zend/ /usr/includes/Zend/Acl.php
  4. michaelcullumuk <?php namespace Psr\Cache; interface CacheItemPoolInterface { public function getItem($key);

    public function getItems(array $keys = array()); public function hasItem($key); public function clear(); public function deleteItem($key); public function deleteItems(array $keys); public function save(CacheItemInterface $item); public function saveDeferred(CacheItemInterface $item); public function commit(); }
  5. michaelcullumuk <?php namespace Psr\Cache; interface CacheItemInterface { public function getKey();

    public function isHit(); public function set($value); public function expiresAt($expiration); public function expiresAfter($time); }
  6. michaelcullumuk PSR-9 •Lukas Kahwe Smith, Larry Garfield, Korvin Szanto •

    Give researchers& project leads a defined process for disclosing security vulnerabilities.
  7. michaelcullumuk PSR-10 •Lukas Kahwe Smith, Korvin Szanto, Larry Garfield •A

    clearly defined structured format for these disclosures.
  8. michaelcullumuk PSR-11 • Matthieu Napoli, David Négrier, Paul M. Jones,

    Jeremy Lindblom • Common interface for dependency injection containers. • ContainerInterface
  9. michaelcullumuk PSR-14 • Second Docblock • Key-Pair Values • Storage

    • Promises • Streams • Event Loop • HTTP Handler • Config