PHPackages                             siriusphp/invokator - 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. siriusphp/invokator

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

siriusphp/invokator
===================

Library that implements a unified way to execute a list of commands/callables that are used by various patterns: events, pipelines, middleware etc

1.1.1(2y ago)14MITPHPPHP ^8.0|^8.1|^8.2

Since Oct 13Pushed 2y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (4)Versions (6)Used By (0)

Sirius Invokator
================

[](#sirius-invokator)

[![Source Code](https://camo.githubusercontent.com/eb2f13e93506655184269623a5fc46966281846d9db54c91d9965f3d30068712/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d7369726975737068702f696e766f6b61746f722d626c75652e737667)](https://github.com/siriusphp/invokator)[![Latest Version](https://camo.githubusercontent.com/080b7799302f017c4eb7bcf9848536a471f780cbf160616aeda3100c67ce66b5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7369726975737068702f696e766f6b61746f722e737667)](https://github.com/siriusphp/invokator/releases)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](https://github.com/siriusphp/invokator/blob/master/LICENSE)[![Build Status](https://github.com/siriusphp/invokator/workflows/CI/badge.svg)](https://github.com/siriusphp/invokator/actions)[![Total Downloads](https://camo.githubusercontent.com/10f562e2d5555943fc5100222a49ce20f2e23572b9bc7f11819e3b8e2c40ee9c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7369726975737068702f696e766f6b61746f722e737667)](https://packagist.org/packages/siriusphp/invokator)

Sirius Invokator is a library that implements a unified way to execute a list of commands/callables that are used by various patterns:

1. middlewares
2. pipelines
3. events
4. command bus (with middleware)
5. actions a la Wordpress
6. filters a la Wordpress

All of the above patterns have in common that they are actually a list of callables, and they differ in the way they are executed in different ways.

In the case of middlewares, the starting parameter (eg: a HTTP request) is passed from one callable to the next, each callable having the option to terminate with a result or call the next callable in the list.

In the case of pipelines, the result of each callable is passed to the next callable and the last callable will return the result of the pipeline

In the case of events, an `event` object is passed through each callable in the list and each callable is independent.

In th case of the command buss, a `command` object is sent to be handled by only one callable.

Elevator pitch
--------------

[](#elevator-pitch)

```
use Sirius\Invokator\Invoker;
use Sirius\Invokator\Processors\PipelineProcessor;
use Sirius\Invokator\CallableCollection;

$container = app(); // your application DI container
$invoker = new Invoker($container)
$processor = new PipelineProcessor($invoker);

$processor->add('pipeline_name', 'trim');
$processor->add('pipeline_name', 'Str::toUppercase');
$processor->add('pipeline_name', function($value) {             // anonymous function
    return $value . '!!!';
});
$processor->add('pipeline_name', 'Logger@info');

$processor->process('pipeline_name', "  hello world  "); // returns `HELLO WORLD!!!`
```

Where to next?
--------------

[](#where-to-next)

- [documentation](https://sirius.ro/php/sirius/invokator/)
- [releases](https://github.com/siriusphp/invokator/releases)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Every ~18 days

Total

5

Last Release

876d ago

Major Versions

0.2.0 → 1.0.02023-10-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/e3de1fb0b661bb9affaf6283808f7e69e084827b7ef156c6d04ad261253b74dc?d=identicon)[adrianmiu](/maintainers/adrianmiu)

---

Top Contributors

[![adrianmiu](https://avatars.githubusercontent.com/u/1293017?v=4)](https://github.com/adrianmiu "adrianmiu (21 commits)")

---

Tags

middlewareinvokereventspipelinescallables

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/siriusphp-invokator/health.svg)

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

###  Alternatives

[php-di/invoker

Generic and extensible callable invoker

26857.8M56](/packages/php-di-invoker)[crell/tukio

A robust, stand-alone PSR-14 event dispatcher implementation.

112183.8k13](/packages/crell-tukio)[fig/event-dispatcher-util

Useful utility classes and traits for implementing the PSR events standard

27423.2k19](/packages/fig-event-dispatcher-util)[zumba/symbiosis

Symbiosis, event structure for bootstrapping plugins.

1360.4k1](/packages/zumba-symbiosis)

PHPackages © 2026

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