PSR(PHP標準推奨)は、PHP-FIG(フレームワーク相互運用性グループ)が公開する一連の標準であり、コーディングスタイル、オートロード、共有インターフェースなどの一般的な規約を定義し、異なるPHPフレームワーク、ライブラリ、パッケージ間の相互運用性を実現しています。
最も重要なPSR
PSR-1 / PSR-12 → CODING STYLE (basic + extended): naming, braces, indentation, etc.
PSR-4 → AUTOLOADING: namespace ↔ directory mapping (used by Composer)
PSR-3 → LoggerInterface: a common logging interface
PSR-7 → HTTP message interfaces (Request/Response objects)
PSR-11 → ContainerInterface: a common DI container interface
PSR-15 → HTTP middleware interface
PSR-6 / PSR-16 → Caching interfaces
PSR-18 → HTTP client interface
