PHPackages                             itantik/nette-cq-dispatcher - 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. itantik/nette-cq-dispatcher

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

itantik/nette-cq-dispatcher
===========================

Nette extension for itantik/cq-dispatcher

v0.5.1(6y ago)08MITPHPPHP &gt;= 7.2

Since May 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/itantik/nette-cq-dispatcher)[ Packagist](https://packagist.org/packages/itantik/nette-cq-dispatcher)[ RSS](/packages/itantik-nette-cq-dispatcher/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (8)Versions (4)Used By (0)

Nette CQ Dispatcher
===================

[](#nette-cq-dispatcher)

[Nette](https://nette.org/) extension for [Command Query Dispatcher](https://github.com/itantik/cq-dispatcher).

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

[](#installation)

```
composer require itantik/nette-cq-dispatcher

```

It already includes [itantik/cq-dispatcher](https://github.com/itantik/cq-dispatcher). There is no need to install it separately.

Usage
-----

[](#usage)

Register the extension in Nette configuration file.

```
extensions:
    cqdispatcher: Itantik\CQDispatcher\Bridges\Nette\CQDispatcherExtension
```

No additional settings are required. By default, CQ Dispatcher uses Nette DI Container. With additional configurations you can change default settings.

### Change DI container

[](#change-di-container)

Create an adapter to your DI container and register it in the configuration file. The adapter implements `Itantik\CQDispatcher\DI\IContainer` interface.

```
cqdispatcher:
    # default DI container
    container: Itantik\CQDispatcher\Adapters\NetteDIContainer
```

### Change handler providers

[](#change-handler-providers)

Default command and query handler providers use a DI container to create a handler instance. You can create your own providers that meet your needs, even without a DI container.

Providers have to implement `Itantik\CQDispatcher\Command\ICommandHandlerProvider` respectively `Itantik\CQDispatcher\Query\IQueryHandlerProvider` interface.

```
cqdispatcher:
    # default providers
    commandHandlerProvider: Itantik\CQDispatcher\Command\DiCommandHandlerProvider
    queryHandlerProvider: Itantik\CQDispatcher\Query\DiQueryHandlerProvider
```

Requirements
------------

[](#requirements)

- PHP 7.2

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Total

3

Last Release

2215d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10348473?v=4)[Stanislav Antoš](/maintainers/itantik)[@itantik](https://github.com/itantik)

---

Top Contributors

[![itantik](https://avatars.githubusercontent.com/u/10348473?v=4)](https://github.com/itantik "itantik (7 commits)")

###  Code Quality

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/itantik-nette-cq-dispatcher/health.svg)

```
[![Health](https://phpackages.com/badges/itantik-nette-cq-dispatcher/health.svg)](https://phpackages.com/packages/itantik-nette-cq-dispatcher)
```

###  Alternatives

[contributte/di

Extra contrib to nette/di

475.9M18](/packages/contributte-di)[contributte/event-dispatcher

Best event dispatcher / event manager / event emitter for Nette Framework

302.5M19](/packages/contributte-event-dispatcher)[radekdostal/nette-datetimepicker

DatePicker and DateTimePicker input controls for Nette Framework

13282.2k5](/packages/radekdostal-nette-datetimepicker)

PHPackages © 2026

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