wecodein / http-middleware
Middleware for PHP built on top of PSR-7, PSR-15 and PSR-17
1.0.1
2018-12-28 12:06 UTC
Requires
- php: ^7.0
- psr/http-factory: ^1.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
Requires (Dev)
Provides
- psr/http-middleware: dev-develop
- psr/http-middleware-implementation: ^1.0
This package is not auto-updated.
Last update: 2024-11-10 04:12:13 UTC
README
PSR-15 compliant implementation for processing middleware queues.
Installation
The preferred method of installation is via Composer. Run the following command to install the latest version of a package and add it to your project's composer.json
:
composer require wecodein/http-middleware
Usage
$requestHandler = new RequestHandler($responseFactory, ...$middlewares); $response = $requestHandler->handle($serverRequest);
See examples.
Credits
License
Released under MIT License - see the License File for details.