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

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

componenta/pipeline
===================

PSR-15 middleware pipeline for Componenta

v1.0.0(1mo ago)093MITPHPPHP ^8.4

Since Jun 16Pushed 1mo agoCompare

[ Source](https://github.com/componenta/pipeline)[ Packagist](https://packagist.org/packages/componenta/pipeline)[ RSS](/packages/componenta-pipeline/feed)WikiDiscussions main Synced 1w ago

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

Componenta Pipeline
===================

[](#componenta-pipeline)

[![PHP](https://camo.githubusercontent.com/e9b4fc8e2edfe2ad83ab5e32546edefd37388dfa099b72dfe95f1a4820360f55/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e342d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://www.php.net/)[![PSR-15](https://camo.githubusercontent.com/e400a6e5059b70cccca1df84f6d0c08cd9a2d6a5bfc96322c1eb73cb13046418/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5053522d2d31352d636f6d706c69616e742d677265656e)](https://www.php-fig.org/psr/psr-15/)[![License](https://camo.githubusercontent.com/b8cadaa967891081f8f165695470689986c028821dd8a040132f6e661795dc0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c7565)](https://opensource.org/licenses/MIT)

PSR-15 middleware pipeline for the Componenta framework.

Installation
------------

[](#installation)

```
composer require componenta/pipeline
```

The package declares `Componenta\Http\Middleware\PipelineConfigProvider` in `extra.componenta.config-providers`. When `componenta/composer-plugin` is installed, the provider is added to the generated provider list automatically.

Related Packages
----------------

[](#related-packages)

PackageWhy it matters here`psr/http-server-middleware`Defines `MiddlewareInterface` and `RequestHandlerInterface`.`componenta/app-http`Runs HTTP applications on top of the pipeline; concrete middleware and response emission live in separate HTTP packages.`componenta/router`Usually sits near the end of the HTTP pipeline.`componenta/middleware-factory`Creates middleware from strings, classes, groups, and callables.Usage
-----

[](#usage)

### As a top-level handler

[](#as-a-top-level-handler)

```
use Componenta\Http\Middleware\Pipeline;

$pipeline = new Pipeline(
    [$errorMiddleware, $authMiddleware, $routerMiddleware],
    fallbackHandler: $notFoundHandler,
);

$response = $pipeline->handle($request);
```

If no `fallbackHandler` is supplied, `EmptyPipelineHandler` is installed and throws `RuntimeException` on invocation — this surfaces misconfiguration of an empty pipeline.

### Nested pipelines

[](#nested-pipelines)

A pipeline is itself a middleware, so pipelines compose:

```
$api = new Pipeline([$apiAuth, $apiRouter]);
$web = new Pipeline([$sessionMiddleware, $webRouter]);

$app = new Pipeline([$errorMiddleware], $notFoundHandler)
    ->pipe($api)
    ->pipe($web);
```

### Via the factory

[](#via-the-factory)

```
$pipeline = $factory->createMiddlewarePipeline(
    [$auth, $router],
    $notFoundHandler,
);
```

Behavior
--------

[](#behavior)

- Middleware execute in registration order (FIFO).
- `pipe()` returns a new pipeline; the original is not modified.
- Returning a response from a middleware without calling the next handler halts the chain.
- Exceptions from middleware and terminal handlers propagate unchanged.

Errors
------

[](#errors)

ConditionExceptionNon-middleware element in constructor / `pipe()``InvalidArgumentException`Pipeline appended to itself via `pipe()``RuntimeException`Pipeline passed as its own handler to `process()``RuntimeException`Empty pipeline invoked without a custom fallback`RuntimeException`

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance91

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

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

43d ago

### Community

Maintainers

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

---

Top Contributors

[![Shelamkoff](https://avatars.githubusercontent.com/u/20490712?v=4)](https://github.com/Shelamkoff "Shelamkoff (1 commits)")

### Embed Badge

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

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

###  Alternatives

[mcp/sdk

Model Context Protocol SDK for Client and Server applications in PHP

1.5k1.5M108](/packages/mcp-sdk)[flarum/core

Delightfully simple forum software.

211.4M2.4k](/packages/flarum-core)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

36789.4k2](/packages/telnyx-telnyx-php)[jaxon-php/jaxon-core

Jaxon is an open source PHP library for easily creating Ajax web applications

73149.4k30](/packages/jaxon-php-jaxon-core)[oat-sa/tao-core

TAO core extension

65143.7k124](/packages/oat-sa-tao-core)[xima/xima-typo3-frontend-edit

Frontend Edit - This extension provides an edit button for editors within frontend content elements.

1414.3k](/packages/xima-xima-typo3-frontend-edit)

PHPackages © 2026

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