PHPackages                             pauci/cqrs-module - 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. [Framework](/categories/framework)
4. /
5. pauci/cqrs-module

ActiveLibrary[Framework](/categories/framework)

pauci/cqrs-module
=================

Zend Framework 2 Module that provides functionality for CQRS library

v0.3.2(7y ago)01.8k3MITPHPPHP ^5.6 || ^7.0

Since May 24Pushed 7y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (13)Versions (7)Used By (0)

CQRS Module for Zend Framework 2
================================

[](#cqrs-module-for-zend-framework-2)

[![Build Status](https://camo.githubusercontent.com/510f19dd8d3c507957974d0af8ade92dba8fd038426dd997e00924ed0f103016/68747470733a2f2f7472617669732d63692e6f72672f70617563692f637172732d6d6f64756c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pauci/cqrs-module)

CQRSModule integrates CQRS library with Zend Framework 2 quickly and easily.

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

[](#installation)

Installation of this module uses composer. For composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).

Install the module via command:

```
php composer.phar require pauci/cqrs-module
# (When asked for a version, type `dev-master`)

```

Then add `CQRSModule` to your `config/application.config.php`

Setup
-----

[](#setup)

```
return [
    'cqrs' => [
        'commandHandlerLocator' => [
            'cqrs_default' => [
                'handlers' => [
                    'UserService' => [
                        'ChangeUserName'
                    ]
                ]
            ]
        ],
        'eventHandlerLocator' => [
            'cqrs_default' => [
                'services' => [
                    'EchoEventListener' => [
                        'UserNameChanged'
                    ]
                ]
            ]
        ]
    ]
];
```

Registered Service names
------------------------

[](#registered-service-names)

- `cqrs.command_bus.cqrs_default`: a `CQRS\CommandHandling\CommandBusInterface` instance
- `cqrs.command_handler_locator.cqrs_default`: a `CQRS\CommandHandling\Locator\CommandHandlerLocatorInterface` instance
- `cqrs.transaction_manager.cqrs_default`: a `CQRS\CommandHandling\TransactionManager\TransactionManagerInterface` instance
- `cqrs.event_publisher.cqrs_default`: the `CQRS\EventHandling\Publisher\EventPublisherInterface` instance
- `cqrs.event_bus.cqrs_default`: the `CQRS\EventHandling\EventBusInterface` instance
- `cqrs.event_handler_locator.cqrs_default`: the `CQRS\EventHandling\Locator\EventHandlerLocatorInterface` instance
- `cqrs.event_store.cqrs_default`: the `CQRS\EventStore\EventStoreInterface` instance
- `cqrs.serializer.reflection`: the `CQRS\Serializer\ReflectionSerializer` instance

#### Service Locator

[](#service-locator)

To access the entity manager, use the main service locator:

```
// for example, in a controller:
$commandBus          = $this->getServiceLocator()->get('cqrs.command_bus.cqrs_default');
$eventHandlerLocator = $this->getServiceLocator()->get('cqrs.event_handler_locator.cqrs_default');
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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

Total

5

Last Release

2865d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2421146?v=4)[Pavol Kirschbaum](/maintainers/pauci)[@pauci](https://github.com/pauci)

---

Top Contributors

[![pauci](https://avatars.githubusercontent.com/u/2421146?v=4)](https://github.com/pauci "pauci (49 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/pauci-cqrs-module/health.svg)

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

PHPackages © 2026

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