PHPackages                             mediagone/cqrs-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. mediagone/cqrs-bus

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

mediagone/cqrs-bus
==================

DDD ready implementation of Command, Event and Query bus.

0.7.3(1mo ago)21.7k11MITPHPPHP ^7.4|^8.0

Since Dec 16Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/Mediagone/cqrs-bus)[ Packagist](https://packagist.org/packages/mediagone/cqrs-bus)[ RSS](/packages/mediagone-cqrs-bus/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (8)Versions (19)Used By (1)

CQRS Bus
========

[](#cqrs-bus)

⚠️ *This project is in experimental phase, the API may change any time.*

[![Latest Version on Packagist](https://camo.githubusercontent.com/7a4dcec2feb9a8cd95b560dca2bb6d513ab2c49d081f2841bd39d1168f8e3d09/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d65646961676f6e652f637172732d6275732e737667)](https://packagist.org/packages/mediagone/cqrs-bus)[![Total Downloads](https://camo.githubusercontent.com/23ab3155cbd69dceae977f81d7206f116d3cb619223035aabfe28196c8ff4b9a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d65646961676f6e652f637172732d6275732e737667)](https://packagist.org/packages/mediagone/cqrs-bus)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)

Services are core classes of any application, and keeping them well organized may be a real challenge. Except if you're working on a small RAD or POC project, your services will quickly grow as messy classes.

This package combines two useful patterns:

- [CQRS](https://martinfowler.com/bliki/CQRS.html) which separates actions (commands) from data retrieval (queries) services.
- [Chain of Responsibility](https://refactoring.guru/design-patterns/chain-of-responsibility) which involves chains of middlewares to handle these commands and queries. Possibilities offered by middleware buses are endless and easily extensible.

It will help you to:

- Decouple *read* and *write* models.
- Wrap every service calls with generic behaviors: *logging, queuing, security, asynchronous handling...*
- Split your services and repositories into multiple classes (enforce *Single Responsibility Principle*).

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

[](#installation)

This package requires **PHP 7.4+** and Doctrine **ORM 2.7+**

Add it as Composer dependency:

```
$ composer require mediagone/cqrs-bus
```

License
-------

[](#license)

*CQRS Bus* is licensed under MIT license. See LICENSE file.

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance89

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.1% 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 ~112 days

Recently: every ~323 days

Total

18

Last Release

55d ago

PHP version history (2 changes)0.1.0PHP ^7.4

0.4.1PHP ^7.4|^8.0

### Community

Maintainers

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

---

Top Contributors

[![Mediagone](https://avatars.githubusercontent.com/u/32240357?v=4)](https://github.com/Mediagone "Mediagone (32 commits)")[![romm](https://avatars.githubusercontent.com/u/6342901?v=4)](https://github.com/romm "romm (2 commits)")

---

Tags

cqrsmiddlewareseventmiddlewarequerycommanddddbuscqrs

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mediagone-cqrs-bus/health.svg)

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

###  Alternatives

[ecotone/ecotone

Supporting you in building DDD, CQRS, Event Sourcing applications with ease.

558549.8k17](/packages/ecotone-ecotone)[league/uri-components

URI components manipulation library

31932.3M67](/packages/league-uri-components)[prooph/service-bus

PHP Enterprise Service Bus Implementation supporting CQRS and DDD

4421.4M32](/packages/prooph-service-bus)[pauci/cqrs

CQRS library

1725.2k2](/packages/pauci-cqrs)

PHPackages © 2026

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