Skip to content

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

License

Notifications You must be signed in to change notification settings

wecodein/http-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

71a459a · Dec 28, 2018

History

19 Commits
Dec 28, 2018
Dec 28, 2018
Dec 28, 2018
Jun 24, 2017
Oct 14, 2017
Jun 24, 2017
Jun 24, 2017
Jun 24, 2017
Dec 28, 2018
Jun 24, 2017
Jun 24, 2017
Nov 23, 2017
Dec 28, 2018
Jun 24, 2017

Repository files navigation

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.