PSRs (PHP Standard Recommendations) คือชุดมาตรฐานที่เผยแพร่โดย PHP-FIG (Framework Interoperability Group) ที่กำหนดธรรมเนียมร่วม ทั้งสไตล์การเขียนโค้ด, การ autoloading และ interface ร่วม เพื่อให้เกิด การทำงานร่วมกันได้ (interoperability) ระหว่างเฟรมเวิร์ก ไลบรารี และแพ็กเกจ 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
