bermudaphp / pipeline
v1.2.3
2022-01-21 19:12 UTC
Requires
- php: ^7.4|^8.0|^8.1
- bermudaphp/config: ^1.1.1
- psr/http-factory: ^1.0.1
- psr/http-server-middleware: ^1.0.1
README
Psr-15 middleware pipeline
Installation
composer require bermudaphp/pipeline
Usage
use function Bermuda\Pipeline\pipe; pipe()->pipe($myFirstMiddlewareInstance) ->pipe($mySecondMiddlewareInstance) ->process($serverRequest, $requestHandler);
Request handling
pipe([$myFirstMiddlewareInstance, $mySecondMiddlewareInstance])->handle($serverRequest);