PHPackages                             samueldavis/php-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. samueldavis/php-pipeline

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

samueldavis/php-pipeline
========================

Compose many callables into a single callable.

1.0.1(8y ago)010MITPHPPHP ^7.0

Since Feb 21Pushed 8y agoCompare

[ Source](https://github.com/SamuelDavis/PhpPipeline)[ Packagist](https://packagist.org/packages/samueldavis/php-pipeline)[ RSS](/packages/samueldavis-php-pipeline/feed)WikiDiscussions master Synced 4w ago

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

PhpPipeline
===========

[](#phppipeline)

Hilarious implementation of chainable `callable` calls.

 is much more *appropriate*, but this is pretty cool too. I appreciate how the state isn't obscured because the thing itself is the state.

### Example Usage

[](#example-usage)

```
class Remover
{
    public static function pop(array $arr = [])
    {
        return array_pop($arr);
    }
}

$stringHelper = new class
{
    public function concat(string $initial, string $addition): string
    {
        return $initial . $addition;
    }
};

$explodeCurry = function (string $string) {
    return explode(' ', $string);
};

$explodingPipeline = (new Pipe)
    ->into('strtoupper')
    ->into($explodeCurry);

$getResult = (new Pipe('foo bar'))
    ->into($explodingPipeline)
    ->into([Remover::class, 'pop'])
    ->into([$stringHelper, 'concat'], 'fiz');

var_dump($getResult());
echo "========\n" . json_encode($getResult, JSON_PRETTY_PRINT);
```

```
~/code/pipe/example.php:33:
string(6) "BARfiz"
========
{
    "0": "foo bar",
    "1": [
        {
            "0": null,
            "1": [
                "strtoupper"
            ],
            "2": [
                {}
            ]
        }
    ],
    "2": [
        [
            "Remover",
            "pop"
        ]
    ],
    "3": [
        [
            {},
            "concat"
        ],
        "fiz"
    ]
}

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~148 days

Total

2

Last Release

3269d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b69846cf82d128a7704071e014d3289998dbf5b3211108377c6308efe4cc52c?d=identicon)[Riffian51](/maintainers/Riffian51)

---

Top Contributors

[![SamuelDavis](https://avatars.githubusercontent.com/u/2657052?v=4)](https://github.com/SamuelDavis "SamuelDavis (26 commits)")

### Embed Badge

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

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

PHPackages © 2026

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