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

3.0.0(3w ago)14MITPHPPHP ^8.3CI passing

Since Oct 13Pushed 3w ago1 watchersCompare

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

READMEChangelog (5)Dependencies (13)Versions (10)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 the case of the command bus, a `command` object is sent to be handled by only one callable.

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

[](#elevator-pitch)

```
use Sirius\Invokator\Invoker;
use Sirius\Invokator\Callables\CallablePipeline;

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

$pipeline = new CallablePipeline($invoker);
$pipeline->add('trim')
         ->add('Str::toUppercase')
         ->add(function($value) {
             return $value . '!!!';
         })
         ->add('Logger@info');

$pipeline->run("  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

46

—

FairBetter than 92% of packages

Maintenance95

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Recently: every ~241 days

Total

7

Last Release

25d ago

Major Versions

0.2.0 → 1.0.02023-10-17

1.1.1 → 2.0.02026-06-06

2.0.0 → 3.0.02026-06-07

PHP version history (2 changes)0.1.0PHP ^8.0|^8.1|^8.2

2.0.0PHP ^8.3

### 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 (41 commits)")

---

Tags

middlewareinvokereventspipelinescallables

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

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

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[symfony/dependency-injection

Allows you to standardize and centralize the way objects are constructed in your application

4.2k455.6M9.6k](/packages/symfony-dependency-injection)[deptrac/deptrac

Deptrac is a static code analysis tool that helps to enforce rules for dependencies between software layers.

3.0k8.8M117](/packages/deptrac-deptrac)[illuminate/contracts

The Illuminate Contracts package.

706130.3M13.3k](/packages/illuminate-contracts)[mcp/sdk

Model Context Protocol SDK for Client and Server applications in PHP

1.5k1.5M86](/packages/mcp-sdk)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M419](/packages/drupal-core-recommended)

PHPackages © 2026

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