Skip to content

bermudaphp/pipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pipeline

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);