wecodein / http-middleware
Middleware for PHP built on top of PSR-7, PSR-15 and PSR-17
Installs: 53
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/wecodein/http-middleware
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: 2025-10-12 09:06:02 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.