Standards & Best Practices

PHP-FIG and PHP Standards Recommendations

PHP-FIG publishes PHP Standards Recommendations that improve interoperability across libraries and applications.

Overview

PHP-FIG publishes PHP Standards Recommendations that improve interoperability across libraries and applications.

Useful standards

  • PSR-4: Autoloading
  • PSR-12: Extended Coding Style
  • PSR-3: Logger Interface
  • PSR-7: HTTP Message Interfaces
  • PSR-11: Container Interface

Check each recommendation's current status and specification on the official site.

Official website: PHP-FIG

Evaluation checklist

  • Prefer official documentation and repositories.
  • Check supported PHP versions and release history.
  • Review installation instructions and license terms.
  • Keep dependencies updated and run security checks.