logifire / nano-middleware
PSR-15 request handler implementation
0.2.2
2021-09-21 18:10 UTC
Requires
- php: ^7.4
- psr/http-message: ^1.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
Requires (Dev)
- nyholm/psr7: ^1.0.1
- phpunit/phpunit: ^9.5.9
- psr/http-factory: ^1.0.0
Provides
This package is auto-updated.
Last update: 2024-12-06 00:46:27 UTC
README
A PSR-15 request handler implementation
See https://www.php-fig.org/psr/psr-15/
Usage
$handler = new RequestHandler();
$handler->addMiddleware(new Middleware());
$handler->addMiddleware(new Middleware());
$response = $handler->handle($server_request);