madewithlove / psr15-bridge
Installs: 46
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 2
Open Issues: 4
pkg:composer/madewithlove/psr15-bridge
Requires
- php: >5.6
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is not auto-updated.
Last update: 2022-09-30 14:45:37 UTC
README
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