/psr15-bridge

PSR-15 middleware to wrap existing PSR-7 middleware

Primary LanguagePHPMIT LicenseMIT

PSR-15 interfaced wrapper for callable middleware

Build Status

Installation

composer require madewithlove/psr15-bridge

Usage

Wrap existing callable (double pass) PSR-7 middlewares in a PSR-15 middleware:

$middleware = new Middleware($callableMiddleware, new Response());

And use the resulting middleware objects in a PSR-15 stack.

Testing

After cloning this project, install its dependencies and run the test suite:

composer install
vendor/bin/phpunit

License

MIT