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

This package is not auto-updated.

Last update: 2024-10-27 03:57:35 UTC


README

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.