PSRs (PHP Standard Recommendations) PHP-FIG (Framework Interoperability Group) ਦੁਆਰਾ ਪ੍ਰਕਾਸ਼ਿਤ ਸਟੈਂਡਰਡਾਂ ਦਾ ਇੱਕ ਸੈੱਟ ਹਨ ਜੋ ਆਮ ਰਾਏ-ਰਵਾਇਆਂ ਨੂੰ ਪਰਿਭਾਸ਼ਿਤ ਕਰਦੇ ਹਨ — ਕੋਡਿੰਗ ਸਟਾਈਲ, autoloading, ਅਤੇ ਸਾਂਝੇ interfaces — ਵੱਖ-ਵੱਖ PHP frameworks, ਲਾਇਬ੍ਰੇਰੀਆਂ, ਅਤੇ ਪੈਕੇਜਾਂ ਦੇ ਵਿਚਕਾਰ interoperability ਨੂੰ ਸਮਰੱਥ ਬਣਾਉਂਦੇ ਹਨ।
ਸਭ ਤੋਂ ਮਹੱਤਵਪੂਰਨ PSRs
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
