PHPackages                             thewebsolver/pipeline - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. thewebsolver/pipeline

ActiveLibrary[HTTP &amp; Networking](/categories/http)

thewebsolver/pipeline
=====================

Follows Chain of Responsibility Design Pattern to handle the given subject/request.

v2.0(1y ago)116GPL-3.0-or-laterPHPPHP &gt;=8.2.0

Since May 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/TheWebSolver/pipeline)[ Packagist](https://packagist.org/packages/thewebsolver/pipeline)[ RSS](/packages/thewebsolver-pipeline/feed)WikiDiscussions 2.0 Synced 1mo ago

READMEChangelog (8)Dependencies (4)Versions (9)Used By (0)

Welcome
-------

[](#welcome)

TheWebSolver Pipeline library follows the 🔗 Chain of Responsibility Design Pattern 🔗 to handle the given subject/request using pipes. The pipeline can accept any subject type, passes it through provided pipes and return the updated subject back.

Installation (via Composer)
---------------------------

[](#installation-via-composer)

Install library using composer command:

```
$ composer require thewebsolver/pipeline
```

Benefits
--------

[](#benefits)

- Follows Chain of Responsibility design pattern by passing subject to pipeline handlers in order they were stacked.

    > Use *`Pipeline::through()`* method to pass main handlers as pipe. Optionally, pass additional handlers using *`Pipeline::pipe()`* method.
- Provides support for additional arguments that can be accepted by each handler passed using above methods.

    > Use *`Pipeline::use()`* method to pass as many arguments as required.
- Provides support for catching [Pipe Exception](Src/InvalidPipeError.php) or [Unexpected Exception](Src/UnexpectedPipelineException.php) thrown by the handler.

    > Use *`Pipeline::sealWith()`* method to pass a closure to handle thrown exception.
- Provides [bridge](Server/Bridge.php) for PHP Projects that implements [PSR-7](https://www.php-fig.org/psr/psr-7/) &amp; [PSR-15](https://www.php-fig.org/psr/psr-15/) standards.

    > Use [Queue based Request Handler](https://www.php-fig.org/psr/psr-15/meta/#queue-based-request-handler) implementation to handle stacked middlewares inside [Request Handler](https://www.php-fig.org/psr/psr-15/#21-psrhttpserverrequesthandlerinterface)'s handle method (*`RequestHandlerInterface::handle()`*).

Usage
-----

[](#usage)

For usage details, visit [Wiki page](https://github.com/TheWebSolver/pipeline/wiki).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance40

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~30 days

Recently: every ~51 days

Total

8

Last Release

502d ago

Major Versions

v1.3.1 → 2.0.x-dev2024-12-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/6921441544aa2b10de561f0bc8a785365ed6932f709ead6a6f31d7e2290e4c8c?d=identicon)[hsehszroc](/maintainers/hsehszroc)

---

Top Contributors

[![hsehszroc](https://avatars.githubusercontent.com/u/48177731?v=4)](https://github.com/hsehszroc "hsehszroc (51 commits)")

---

Tags

apibridgedesign-patternlibrarypipelinepsr-15psr-7psr-7psr-15Bridgepipeline

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thewebsolver-pipeline/health.svg)

```
[![Health](https://phpackages.com/badges/thewebsolver-pipeline/health.svg)](https://phpackages.com/packages/thewebsolver-pipeline)
```

###  Alternatives

[league/route

Fast routing and dispatch component including PSR-15 middleware, built on top of FastRoute.

6633.1M116](/packages/league-route)[mezzio/mezzio

PSR-15 Middleware Microframework

3883.6M97](/packages/mezzio-mezzio)[middlewares/utils

Common utils for PSR-15 middleware packages

503.4M93](/packages/middlewares-utils)[middlewares/request-handler

Middleware to execute request handlers

451.6M26](/packages/middlewares-request-handler)[mezzio/mezzio-swoole

Swoole support for Mezzio

92238.9k3](/packages/mezzio-mezzio-swoole)[mezzio/mezzio-authentication

Authentication middleware for Mezzio and PSR-7 applications

121.6M26](/packages/mezzio-mezzio-authentication)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
