Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
PHP Standard Recommendation

The PHP Standard Recommendation (PSR) is a PHP specification published by the PHP Framework Interop Group. Similar to Java Specification Request for Java, it serves the standardization of programming concepts in PHP. The aim is to enable interoperability of components and to provide a common technical basis for implementation of proven concepts for optimal programming and testing practices. The PHP-FIG is formed by several PHP frameworks founders.

Each PSR is suggested by members and voted according to an established protocol to act consistently and in line with their agreed upon processes.

NumberNameDescriptionEditorCoordinatorSponsorStatus
PSR-0Autoloading StandardIt describes the mandatory requirements that must be adhered to for autoloader interoperability.N/AN/AN/ADeprecated and substituted by PSR-4
PSR-1Basic Coding StandardIt comprises what should be considered the standard coding elements that are required to ensure a high level of technical interoperability between shared PHP code.N/AN/AN/AAccepted
PSR-2Coding Style GuideIt considers PSR-1 and it is intended to reduce cognitive friction when scanning code from different authors. It does so by enumerating a shared set of rules and expectations about how to format PHP code.N/AN/AN/ADeprecated
PSR-3Logger InterfaceIt describes a common interface for logging libraries.Jordi BoggianoN/AN/AAccepted
PSR-4Autoloading StandardIt describes a specification for autoloading classes from file paths. It is fully interoperable, and can be used in addition to any other autoloading specification, including PSR-0. This PSR also describes where to place files that will be auto loaded according to the specification.Paul M. JonesPhil SturgeonLarry GarfieldAccepted
PSR-5PHPDoc StandardThe main purpose of this PSR is to provide a complete and formal definition of the PHPDoc standard. This PSR deviates from its predecessor, the de facto PHPDoc Standard associated with phpDocumentor 1.x, to provide support for newer features in the PHP language and to address some of the shortcomings of its predecessor.Mike van RielPhil SturgeonDonald GilbertDraft
PSR-6Caching InterfaceThe goal of this PSR is to allow developers to create cache-aware libraries that can be integrated into existing frameworks and systems without the need for custom development.Larry GarfieldPaul DragoonisRobert HafnerAccepted
PSR-7HTTP Message InterfaceIt describes common interfaces for representing HTTP messages as described in RFC 7230 and RFC 7231, and URIs for use with HTTP messages as described in RFC 3986.Matthew Weier O'PhinneyBeau SimensenPaul M. JonesAccepted
PSR-8Huggable InterfaceIt establishes a common way for objects to express mutual appreciation and support by hugging. This allows objects to support each other in a constructive fashion, furthering cooperation between different PHP projects.Larry GarfieldCal EvansPaul M. JonesAbandoned
PSR-9Security DisclosureIt gives project leads a clearly defined approach to enabling end users to discover security disclosures using a clearly defined structured format for these disclosures.Lukas Kahwe SmithKorvin SzantoLarry GarfieldAbandoned
PSR-10Security AdvisoriesIt gives researchers, project leads, upstream project leads and end users a defined and structured process for disclosing security vulnerabilities.Lukas Kahwe SmithLarry GarfieldKorvin SzantoAbandoned
PSR-11Container InterfaceIt describes a common interface for dependency injection containers. The goal is to standardize how frameworks and libraries make use of a container to obtain objects and parameters (called entries in the rest of this document).Matthieu Napoli, David NégrierPaul M. JonesJeremy LindblomAccepted
PSR-12Extended Coding Style GuideIt extends, expands and replaces PSR-2, the coding style guide and requires adherence to PSR-1, the basic coding standard.Michael CullumKorvin SzantoAlexander MakarovAccepted
PSR-13Hypermedia LinksIt describes common interfaces for representing a hypermedia link.Larry GarfieldMatthew Weier O’PhinneyMarc AlexanderAccepted
PSR-14Event ManagerIt describes common interfaces for dispatching and handling events.Larry GarfieldAccepted
PSR-15HTTP Server Request HandlersIt describes common interfaces for HTTP server request handlers and HTTP server middleware components that use HTTP messages.Woody GilkMatthew Weier O’PhinneyAccepted
PSR-16Simple CacheIt describes a simple yet extensible interface for a cache item and a cache driver.Paul DragoonisJordi BoggianoFabien PotencierAccepted
PSR-17HTTP FactoriesIt describes a common standard for factories that create PSR-7 compliant HTTP objects.Woody GilkMatthew Weier O’PhinneyAccepted
PSR-18HTTP ClientIt describes a common interface for sending HTTP requests and receiving HTTP responses.Tobias NyholmSara GolemonAccepted
PSR-19PHPDoc tagsIt provides a complete catalog of tags in the PHPDoc standard.Chuck BurgessDraft
PSR-20ClockIt provides a standard way of accessing the clock - allowing interopability during testing, when testing behavior that has timing based side effects.Chris SeufertChuck BurgessAccepted
PSR-21InternationalizationTBD.Navarr BarnierDraft
PSR-22Application TracingTBD.Adam AllportDraft

The PHP-FIG official website has the PSR documentation that follows the RFC 2119 written by Scott Bradner in March 1997 at Harvard University.

We don't have any images related to PHP Standard Recommendation yet.
We don't have any YouTube videos related to PHP Standard Recommendation yet.
We don't have any PDF documents related to PHP Standard Recommendation yet.
We don't have any Books related to PHP Standard Recommendation yet.
We don't have any archived web articles related to PHP Standard Recommendation yet.

References

  1. "PHP-FIG members list". PHP-FIG official website. hej. Retrieved 10 January 2016. http://www.php-fig.org/personnel/

  2. "Voting Protocol". PHP Framework Interop Group. Retrieved 10 January 2016. https://www.php-fig.org/bylaws/voting-protocol/

  3. "PSR-0: Autoloading Standard". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/psr-0/

  4. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  5. "PSR-1: Basic Coding Standard". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/psr-1/

  6. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  7. "PSR-2: Coding Style Guide". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/psr-2/

  8. "PHP Standards Recommendations - PHP-FIG". www.php-fig.org. Retrieved 2020-02-14. https://www.php-fig.org/psr/#deprecated

  9. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  10. "PHP Standards Recommendations - PHP-FIG". www.php-fig.org. Retrieved 2020-05-09. https://www.php-fig.org/psr/#numerical-index

  11. "PSR-3: Logger Interface". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/psr-3/

  12. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  13. "PSR-4: Autoloading Standard". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/psr-4/

  14. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  15. "PSR-5: PHPDoc Standard". PHP Documentor official git repository at Github. Retrieved 10 January 2016. https://github.com/phpDocumentor/fig-standards/tree/master/proposed

  16. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  17. "PSR-6: Caching Interface". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/psr-6/

  18. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  19. "PSR-7: HTTP Message Interface". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/psr-7/

  20. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  21. "PSR-8: Huggable Interface". PHP-FIG official git repository at Github. Retrieved 10 January 2016. https://github.com/php-fig/fig-standards/blob/master/proposed/psr-8-hug/psr-8-hug.md

  22. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  23. "PSR-9: Security Disclosure". PHP-FIG official git repository at Github. Retrieved 10 January 2016. https://github.com/php-fig/fig-standards/blob/master/proposed/security-disclosure-publication.md

  24. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  25. "PSR-10: Security Advisories". PHP-FIG official git repository at Github. Retrieved 10 January 2016. https://github.com/php-fig/fig-standards/blob/master/proposed/security-reporting-process.md

  26. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  27. "PSR-11: Container Interface". PHP-FIG PSR-11 official git repository at Github. Retrieved 10 January 2016. https://github.com/container-interop/fig-standards/blob/master/proposed/container.md

  28. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  29. "PSR-12: Extended Coding Style Guide - PHP-FIG". www.php-fig.org. Retrieved 2020-06-04. https://www.php-fig.org/psr/psr-12/

  30. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  31. "PSR-13: Link definition interfaces - PHP-FIG". www.php-fig.org. Retrieved 2019-02-04. https://www.php-fig.org/psr/psr-13/

  32. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  33. "PSR-14: Event Dispatcher". PHP-FIG official git repository at Github. Retrieved 4 February 2019. https://github.com/php-fig/fig-standards/blob/master/proposed/event-dispatcher.md

  34. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  35. "PSR-15: HTTP Server Request Handlers - PHP-FIG". www.php-fig.org. Retrieved 2019-02-04. https://www.php-fig.org/psr/psr-15/

  36. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  37. "PSR-16: Common Interface for Caching Libraries - PHP-FIG". www.php-fig.org. Retrieved 2019-02-04. https://www.php-fig.org/psr/psr-16/

  38. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  39. "PSR-17: HTTP Factories - PHP-FIG". www.php-fig.org. Retrieved 2019-02-04. https://www.php-fig.org/psr/psr-17/

  40. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  41. "PSR-18: HTTP Client - PHP-FIG". www.php-fig.org. Retrieved 2019-02-04. https://www.php-fig.org/psr/psr-18/

  42. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  43. "PSR-19: PHPDoc tags". PHP-FIG official git repository at Github. Retrieved 4 February 2019. https://github.com/php-fig/fig-standards/blob/master/proposed/phpdoc-tags.md

  44. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  45. "PSR-20: Clock - PHP-FIG". www.php-fig.org. Retrieved 2024-01-14. https://www.php-fig.org/psr/psr-20/

  46. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  47. "PSR-21: Internationalization". PHP-FIG official git repository at Github. Retrieved 14 January 2024. https://github.com/php-fig/fig-standards/blob/master/proposed/internationalization.md

  48. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/

  49. "PSR-22: Application Tracing". PHP-FIG official git repository at Github. Retrieved 14 January 2024. https://github.com/php-fig/fig-standards/blob/master/proposed/tracing.md

  50. "PSR status list". PHP-FIG official website. Retrieved 10 January 2016. http://www.php-fig.org/psr/