PSR-15 interfaced wrapper for callable middleware
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