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

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

descom/pipeline
===============

pipeline to inject plugins

2.4.0(1y ago)07.0k↓33.3%1MITPHPPHP ^8.3CI passing

Since Jul 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/descom-es/pipeline)[ Packagist](https://packagist.org/packages/descom/pipeline)[ Docs](https://github.com/descom/pipeline)[ RSS](/packages/descom-pipeline/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (15)Used By (1)

Pipeline to plugins
===================

[](#pipeline-to-plugins)

[![tests](https://github.com/descom-es/pipeline/actions/workflows/test.yml/badge.svg)](https://github.com/descom-es/pipeline/actions/workflows/test.yml)[![analyze](https://github.com/descom-es/pipeline/actions/workflows/analyse.yml/badge.svg)](https://github.com/descom-es/pipeline/actions/workflows/analyse.yml)[![styles](https://github.com/descom-es/pipeline/actions/workflows/fix_style.yml/badge.svg)](https://github.com/descom-es/pipeline/actions/workflows/fix_style.yml)

Install
-------

[](#install)

Via Composer

```
composer require descom/pipeline
```

Usage
-----

[](#usage)

### Create Stages

[](#create-stages)

Samples:

- [DoubleStage](tests/Support/DoubleStage.php)
- [IncreaseStage](tests/Support/IncreaseStage.php)

### Create Pipeline

[](#create-pipeline)

```
use Descom\Pipeline\PipeLine;

class SamplePipeline extends PipeLine
{}
```

### Configure plugin to add Stages

[](#configure-plugin-to-add-stages)

```
    SamplePipeline::getInstance()
        ->pipe(new DoubleStage())
        ->pipe(new IncreaseStage());
```

### Process pipeline to transform data in core

[](#process-pipeline-to-transform-data-in-core)

```
    $payload = 10;

    $payload = SamplePipeline::getInstance()
        ->process($payload); // return 21 (10 * 2) + 1
```

### Options

[](#options)

Perhaps you need to add options to the stages, for example, the number of times to double the value. You can call method `with` to add options to the stages.

```
    $payload = 10;

    $payload = SamplePipeline::getInstance()
        ->process($payload, [
            'twiceDouble' => 3,
            'twiceIncrease' => 2
        ]); // return 82 (10 * 2 ^ 3) + (1 + 1)
```

You can define `DoubleStage` as:

```
class DoubleStage extends Stage
{
    public function handle($payload): int
    {
        $twiceDouble = $this->option('twiceDouble') ?? 1;

        return $payload * pow(2, $twiceDouble);
    }
}
```

Testing
-------

[](#testing)

```
composer test
```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance46

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 56% 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 ~125 days

Recently: every ~229 days

Total

9

Last Release

404d ago

Major Versions

1.0.1 → v2.x-dev2022-10-01

PHP version history (2 changes)1.0.0PHP ^8.0

2.4.0PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25681494?v=4)[Cesar Garcia](/maintainers/cesargb)[@cesargb](https://github.com/cesargb)

---

Top Contributors

[![cesargb](https://avatars.githubusercontent.com/u/25681494?v=4)](https://github.com/cesargb "cesargb (14 commits)")[![llorensjj](https://avatars.githubusercontent.com/u/7073372?v=4)](https://github.com/llorensjj "llorensjj (9 commits)")[![Asiergg34](https://avatars.githubusercontent.com/u/114573920?v=4)](https://github.com/Asiergg34 "Asiergg34 (1 commits)")[![vgarciaf](https://avatars.githubusercontent.com/u/102045600?v=4)](https://github.com/vgarciaf "vgarciaf (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[mathjax/mathjax

MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all modern browsers.

10.8k90.8k1](/packages/mathjax-mathjax)[tobimori/kirby-icon-field

A simple Icon field plugin for Kirby CMS

5117.1k1](/packages/tobimori-kirby-icon-field)[run_as_root/magento-cli-auto-proxy

Makes all Magento CLI commands construct dependencies be injected as Proxy.

3531.8k](/packages/run-as-root-magento-cli-auto-proxy)[zepgram/magento-dotenv

Simple autoloader to integrate the Symfony Dotenv component into Magento2

1371.3k](/packages/zepgram-magento-dotenv)[sandstorm/lazydatasource

Neos package implementing a lazy data source for the UI; so that the elements are loaded lazily on demand.

1044.5k4](/packages/sandstorm-lazydatasource)[chdemko/bitarray

BitArray for PHP &gt;= 8.2

1116.2k](/packages/chdemko-bitarray)

PHPackages © 2026

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