bermudaphp/pipeline

v1.2.4 2025-03-31 01:04 UTC

This package is auto-updated.

Last update: 2025-03-31 01:05:06 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);