reference appendices

PSR And PER Index

PHP-FIG publishes PSRs and PERs that describe shared interfaces and recommendations used across the PHP ecosystem. Apply a standard when it solves an interoperability problem; do not treat every document as mandatory for every project.

Use This Reference When

  • Choosing a logging interface such as PSR-3.
  • Understanding autoloading, HTTP-message, cache, or container abstractions.
  • Reading framework and library documentation.

Common Standards To Recognise

PSR-3   Logger Interface
PSR-4   Autoloader
PSR-7   HTTP Message Interfaces
PSR-11  Container Interface
PSR-16  Simple Cache

Check each document’s status and scope on PHP-FIG. A coding-style standard and an interoperability interface solve different problems.

Practice

Choose a Relevant PSR

For logging, autoloading, and HTTP request objects, identify the relevant PSR and explain the integration benefit.

Show solution

Use PSR-3 for logging, PSR-4 for autoloading, and PSR-7 for HTTP message interfaces. The value is shared vocabulary and compatible implementations.