bermudaphp / pipeline

Psr-15 middleware pipeline

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Psr-15 middleware pipeline

License:MIT License


Languages

Language:PHP 100.0%