wecodein / http-middleware

Middleware for PHP built on top of PSR-7, PSR-15 and PSR-17

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

http-middleware

Build Status Code Quality Code Coverage Latest Version PDS Skeleton

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.

About

Middleware for PHP built on top of PSR-7, PSR-15 and PSR-17

License:MIT License


Languages

Language:PHP 100.0%