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

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

opxcore/pipeline
================

The OpxCore pipeline.

1.0.0(5y ago)09MITPHPPHP ^7.4

Since Mar 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/opxcore/pipeline)[ Packagist](https://packagist.org/packages/opxcore/pipeline)[ Docs](https://opxcore.com)[ RSS](/packages/opxcore-pipeline/feed)WikiDiscussions master Synced 5d ago

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

Pipeline
========

[](#pipeline)

[![Build Status](https://camo.githubusercontent.com/5c180923595476ca9e577753cac1c3eedfd26002f1525e7b11d33bd5740b59e8/68747470733a2f2f7472617669732d63692e636f6d2f6f7078636f72652f706970656c696e652e7376673f6272616e63683d6d61696e)](https://travis-ci.com/opxcore/pipeline)[![Coverage Status](https://camo.githubusercontent.com/08e879fea98af3eaa9adbf0f0e2c9d90e4bd947fec896152fc9a9eabde799afe/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6f7078636f72652f706970656c696e652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/opxcore/pipeline?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/e879e4b270c62978544c0ec4cd417acf0a39f61342c05867261290c91ebdb095/68747470733a2f2f706f7365722e707567782e6f72672f6f7078636f72652f706970656c696e652f762f737461626c65)](https://packagist.org/packages/opxcore/pipeline)[![Total Downloads](https://camo.githubusercontent.com/5d9c2989ffbc1e2afdbed8006d7fd704a594ac2df4a333a2ae19338710e02542/68747470733a2f2f706f7365722e707567782e6f72672f6f7078636f72652f706970656c696e652f646f776e6c6f616473)](https://packagist.org/packages/opxcore/pipeline)[![License](https://camo.githubusercontent.com/9e22c29f5e9f2d670e44ed5831b6b3d16d88e6d78f8ab6432af5ffb0d116fec2/68747470733a2f2f706f7365722e707567782e6f72672f6f7078636f72652f706970656c696e652f6c6963656e7365)](https://packagist.org/packages/opxcore/pipeline)

Pipeline is a class designed to perform chained modifications.

Pipe
----

[](#pipe)

"Pipe" is a class performing some transformations to passed value.

```
class Pipe
{
    public function handle($passable, callable $next)
    {
        // here you can perform modifications of passable

        // and pass it to next pipe
        $modified = $next($passable);

        // and finally you can modify returned value here

        return $modified;
    }
}
```

Calling `$next()` function runs next modifications. You can break modification chain by returning desired result without calling this function.

Usage
-----

[](#usage)

```
use OpxCore\Container\Container;
use OpxCore\Pipeline\Pipeline;

$container = new Container;
$pipeline = new Pipeline($container);

$result = $pipeline
    ->send('some value')
    ->through(['pipe_1', 'pipe_2'])
    ->via('handle')
    ->then(function ($passable){
        return $passable;
    })
    ->run();
```

This will pass value through 'pipe\_1', 'pipe\_2', then modified value would be passed to callback and returned same way.

Pipes may be class names, so container must be set to resolve and make them (with all needed dependencies). Other way you can pass already created classes, so this way you do not need container.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

1899d ago

### Community

Maintainers

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

---

Top Contributors

[![lozovoyv](https://avatars.githubusercontent.com/u/21274927?v=4)](https://github.com/lozovoyv "lozovoyv (5 commits)")

---

Tags

pipelineopxcore

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[league/pipeline

A plug and play pipeline implementation.

1.0k16.0M74](/packages/league-pipeline)[stolz/assets

An ultra-simple-to-use assets management library

296519.2k8](/packages/stolz-assets)[imanghafoori/laravel-middlewarize

Use laravel middlewares on any method calls in your app

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

A layering mechanism for PHP applications.

5810.7k2](/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)
