https://github.com/bermudaphp/pipeline
Psr-15 middleware pipeline
https://github.com/bermudaphp/pipeline
middleware middleware-dispatchers middleware-pipeline middlewares php php-middleware pipeline psr-15 psr-7
Last synced: about 1 month ago
JSON representation
Psr-15 middleware pipeline
- Host: GitHub
- URL: https://github.com/bermudaphp/pipeline
- Owner: bermudaphp
- License: mit
- Created: 2020-04-20T13:28:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-21T19:14:40.000Z (over 3 years ago)
- Last Synced: 2025-03-27T16:05:08.032Z (about 2 months ago)
- Topics: middleware, middleware-dispatchers, middleware-pipeline, middlewares, php, php-middleware, pipeline, psr-15, psr-7
- Language: PHP
- Homepage:
- Size: 70.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pipeline
Psr-15 middleware pipeline## Installation
```bash
composer require bermudaphp/pipeline
```## Usage
```php
use function Bermuda\Pipeline\pipe;
pipe()->pipe($myFirstMiddlewareInstance)
->pipe($mySecondMiddlewareInstance)
->process($serverRequest, $requestHandler);
```## Request handling
```php
pipe([$myFirstMiddlewareInstance, $mySecondMiddlewareInstance])->handle($serverRequest);
```