PHPackages                             webware/command-bus - 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. webware/command-bus

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

webware/command-bus
===================

MessageBus for Mezzio

0.4.0(7mo ago)01.1k↓82.8%3BSD-3-ClausePHPPHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0CI passing

Since Aug 24Pushed 1w agoCompare

[ Source](https://github.com/webinertia/message-bus)[ Packagist](https://packagist.org/packages/webware/command-bus)[ Docs](https://github.com/tyrsson/command-bus/discussions)[ RSS](/packages/webware-command-bus/feed)WikiDiscussions 1.1.x Synced 2w ago

READMEChangelog (6)Dependencies (7)Versions (10)Used By (3)

message-bus
===========

[](#message-bus)

[![Continuous Integration](https://github.com/webinertia/message-bus/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/webinertia/message-bus/actions/workflows/continuous-integration.yml)[![Coverage Status](https://camo.githubusercontent.com/68996650759e03076027c2d81048fa1ccc94736249ecbc7476b5de56d0e1c510/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f776562696e65727469612f6d6573736167652d6275732f62616467652e737667)](https://coveralls.io/github/webinertia/message-bus)[![Mutation testing badge](https://camo.githubusercontent.com/4a46a07e7a5b7b978ed08a7e34a620cfdd403b333c4e62acdae89964d37642b4/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246776562696e65727469612532466d6573736167652d627573253246302e312e78)](https://dashboard.stryker-mutator.io/reports/github.com/webinertia/message-bus/0.1.x)

A command/query message bus for [Mezzio](https://docs.mezzio.dev/) and other PSR-11 based applications. Messages (commands or queries) are dispatched through a configurable middleware pipeline to their mapped handler, and a result flows back out through that same pipeline.

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

[](#installation)

```
composer require webware/message-bus
```

Registers itself as a Laminas/Mezzio config provider (`Webware\MessageBus\ConfigProvider`) via composer's `extra.laminas.config-provider`.

Documentation
-------------

[](#documentation)

Full documentation lives in [docs/v1](./docs/v1/index.md):

- [Overview &amp; Architecture](./docs/v1/index.md)
- [Getting Started](./docs/v1/getting-started.md)
- [Usage Examples](./docs/v1/usage-examples.md)
- [API Reference](./docs/v1/api-reference/index.md)
- [Contributing](./docs/v1/contributing.md)

Testing
-------

[](#testing)

```
composer test              # unit tests
composer test-integration  # integration tests
composer test-all          # both
```

Acknowledgments
---------------

[](#acknowledgments)

The middleware pipeline design in this package is directly inspired by, and mirrors the mechanics of, the PSR-15-style pipeline used in [mezzio/mezzio](https://github.com/mezzio/mezzio).

This package was built for the Laminas/Mezzio ecosystem and its users, and that debt is gladly owed — credit belongs with the Laminas/Mezzio maintainers and contributors for the original design. See [mezzio/mezzio](https://github.com/mezzio/mezzio) and its [LICENSE](https://github.com/mezzio/mezzio/blob/master/LICENSE.md) (BSD-3-Clause) for the source of that inspiration.

License
-------

[](#license)

BSD-3-Clause

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance83

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~42 days

Recently: every ~72 days

Total

9

Last Release

17d ago

PHP version history (3 changes)0.1.0PHP ~8.2.0 || ~8.3.0 || ~8.4.0

0.3.0PHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

0.5.x-devPHP ~8.4.1 || ~8.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d6eed33e61a99f1147789696252f4523130b5035a19eb07e034a7407fd44548?d=identicon)[tyrsson](/maintainers/tyrsson)

---

Top Contributors

[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (27 commits)")[![tyrsson](https://avatars.githubusercontent.com/u/1237487?v=4)](https://github.com/tyrsson "tyrsson (27 commits)")

---

Tags

mezziocommandbuswebware

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/webware-command-bus/health.svg)

```
[![Health](https://phpackages.com/badges/webware-command-bus/health.svg)](https://phpackages.com/packages/webware-command-bus)
```

###  Alternatives

[symfony/dependency-injection

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

4.2k464.3M10.6k](/packages/symfony-dependency-injection)[illuminate/contracts

The Illuminate Contracts package.

707133.3M15.2k](/packages/illuminate-contracts)[illuminate/container

The Illuminate Container package.

31083.8M2.5k](/packages/illuminate-container)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k52.2M377](/packages/api-platform-core)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

568591.1k63](/packages/ecotone-ecotone)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k53](/packages/civicrm-civicrm-core)

PHPackages © 2026

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