PSR-1 PSR-1: Basic Coding Standard
Fundamental coding standards for PHP interoperability.
A comprehensive guide to PHP-FIG standards (PSRs) with practical examples and companion code.
Fundamental coding standards for PHP interoperability.
Extended coding style guide building on PSR-1.
Requires: PSR-1
Autoloading standard for PHP classes based on file paths.
Requires: PSR-1
Common interface for dependency injection containers.
Requires: PSR-1, PSR-4
Standard interfaces for event handling and dispatching.
Requires: PSR-1, PSR-4, PSR-11
Common interfaces for representing HTTP messages.
Requires: PSR-1, PSR-4
Interfaces for server request handlers and middleware.
Requires: PSR-7, PSR-17
Simplified caching interface for common use cases.
Requires: PSR-1, PSR-4
Interfaces for hypermedia links and link providers.
Requires: PSR-1, PSR-4, PSR-7
Clone the companion repository to follow along with working examples:
git clone https://github.com/jonesrussell/php-fig-guide.git
cd php-fig-guide
composer install Run the tests:
composer test
composer test -- --filter=PSR1
composer check-style