bermudaphp/pipeline

v1.2.3 2022-01-21 19:12 UTC

This package is auto-updated.

Last update: 2024-10-22 01:05:28 UTC


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