A comprehensive collection of reusable PSR-15 middleware components for PHP applications.
PSR-15 Middlewares is a collection of reusable middleware components for PHP applications that comply with the PSR-15 standard. It provides modular solutions for handling common HTTP tasks such as authentication, security, logging, optimization, and routing. The project simplifies building and maintaining PHP web applications by offering standardized, interoperable middleware.
PHP developers building web applications or APIs who need standardized middleware for request/response processing, especially those using PSR-7 and PSR-15 compatible frameworks or dispatchers.
Developers choose PSR-15 Middlewares for its comprehensive, standards-compliant collection that eliminates the need to write boilerplate middleware code. Its modular design allows easy integration and customization, promoting code reuse and maintainability across projects.
Collection of PSR-15 middlewares officially developed by Middlewares organization
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Adheres to PSR-15, ensuring interoperability with any compatible dispatcher, as demonstrated in the usage example with Dispatcher chaining multiple middlewares.
Offers middlewares for authentication, security, optimization, and more, covering common HTTP tasks like CORS, compression, and logging without custom code.
The README example shows straightforward setup with a dispatcher array, allowing developers to mix and match middlewares like ErrorHandler and GzipEncoder.
Each middleware has its own GitHub repository for focused updates, as noted in the contributing section, ensuring targeted bug fixes and enhancements.
Contributing guidelines direct users to individual component repositories for issues, making consolidated learning and troubleshooting more difficult.
Requires separate PSR-7 and PSR-15 implementations, adding initial configuration overhead compared to framework-native middleware solutions.
Only includes Basic and Digest authentication; developers must seek external libraries for OAuth, JWT, or other modern standards.