What are PSR standards, and why are they important for the PHP ecosystem?

Last updated 15 June 2026

  • PSRs (PHP Standards Recommendations) are PHP-FIG specifications covering autoloading (PSR-4), coding style (PSR-12) and shared interfaces like PSR-3 logging and PSR-7 HTTP messages.

  • They enable interoperability (swap compliant implementations without rewriting code) and consistency across projects, and Composer and frameworks rely on them.

  • They are recommendations, not enforced rules, but adopting them is the de facto professional standard.

  • https://www.php-fig.org/
  • https://www.php-fig.org/bylaws/psr-amendments/
  • https://www.php-fig.org/per/coding-style/
  • https://www.php-fig.org/psr/psr-12/
All PHP interview questions