PHPackages                             badtomcat/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. badtomcat/pipeline

ActiveProject[Utility &amp; Helpers](/categories/utility)

badtomcat/pipeline
==================

pipeline

v0.0.1(8y ago)0411MITPHPPHP &gt;=5.4.0

Since Dec 20Pushed 8y agoCompare

[ Source](https://github.com/badtomcat/pipeline)[ Packagist](https://packagist.org/packages/badtomcat/pipeline)[ Docs](https://github.com/badtomcat/pipeline)[ RSS](/packages/badtomcat-pipeline/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (1)

pipe
====

[](#pipe)

```
function dispatchToRouter()
{
    return function ($request) {
        echo '>>>'.$request . PHP_EOL;
    };
}

$request = 10;

$middlewares = [
    function($a,$next){
        var_dump($a);
        return $next($a + 5);
    },
    function($b,$next){
        var_dump($b);
        return $next($b * 2);
    },
    function($c,$next){
        var_dump($c);
        $r = $next($c - 1);
        return $r;
    },
];

> 函数的返回值为第一个PIPE的返回值

(new pipe())->send(1)->through($middlewares)->then(dispatchToRouter());

$middlewares = [
    function($a,$next){
        $next($a + 5);
        var_dump($a);
    },
    function($b,$next){
        $next($b * 2);
        var_dump($b);
    },
    function($c,$next){
        $next($c - 1);
        var_dump($c);
    },
];

(new pipe())->send(1)->through($middlewares)->then(dispatchToRouter());

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

3114d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33171263?v=4)[badtomcat](/maintainers/badtomcat)[@badtomcat](https://github.com/badtomcat)

---

Top Contributors

[![aweitian](https://avatars.githubusercontent.com/u/6269615?v=4)](https://github.com/aweitian "aweitian (9 commits)")

---

Tags

pipeline

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[league/pipeline

A plug and play pipeline implementation.

1.0k16.8M84](/packages/league-pipeline)[stolz/assets

An ultra-simple-to-use assets management library

289527.4k8](/packages/stolz-assets)[chefhasteeth/pipeline

18054.0k1](/packages/chefhasteeth-pipeline)[imanghafoori/laravel-middlewarize

Use laravel middlewares on any method calls in your app

1124.5k1](/packages/imanghafoori-laravel-middlewarize)[aldemeery/onion

A layering mechanism for PHP applications.

5812.4k3](/packages/aldemeery-onion)[fisharebest/laravel-assets

Asset management for Laravel

208.1k](/packages/fisharebest-laravel-assets)

PHPackages © 2026

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