PSRs (PHP Standard Recommendations) হল PHP-FIG (Framework Interoperability Group) দ্বারা প্রকাশিত মানদণ্ডের একটি সেট যা সাধারণ সম্মেলন সংজ্ঞায়িত করে — কোডিং স্টাইল, অটোলোডিং এবং শেয়ার করা ইন্টারফেস — যা বিভিন্ন 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
