PHPackages                             nepada/message-bus-nette - 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. nepada/message-bus-nette

ActiveLibrary[Framework](/categories/framework)

nepada/message-bus-nette
========================

Integration of nepada/message-bus into Nette Framework.

v2.4.3(5mo ago)31.9k↓50%BSD-3-ClausePHPPHP &gt;=8.2.0 &lt;8.6CI passing

Since Jul 23Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/nepada/message-bus-nette)[ Packagist](https://packagist.org/packages/nepada/message-bus-nette)[ RSS](/packages/nepada-message-bus-nette/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (25)Versions (16)Used By (0)

Message Bus integration into Nette Framework
============================================

[](#message-bus-integration-into-nette-framework)

[![Build Status](https://github.com/nepada/message-bus-nette/workflows/CI/badge.svg)](https://github.com/nepada/message-bus-nette/actions?query=workflow%3ACI+branch%3Amaster)[![Coverage Status](https://camo.githubusercontent.com/4fb82425ffde445c978eb5f42b92ae46d44420080d783240ff9e560f565250f0/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6e65706164612f6d6573736167652d6275732d6e657474652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/nepada/message-bus-nette?branch=master)[![Downloads this Month](https://camo.githubusercontent.com/e6708b520e32e982051d4bd2230d84643a0c66e136b7b1596f03fadf3395cfae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6e65706164612f6d6573736167652d6275732d6e657474652e737667)](https://packagist.org/packages/nepada/message-bus-nette)[![Latest stable](https://camo.githubusercontent.com/0597871930be77870750e2c91330b8170bbcadbc377268317321ff5da5d1635d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e65706164612f6d6573736167652d6275732d6e657474652e737667)](https://packagist.org/packages/nepada/message-bus-nette)

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

[](#installation)

Via Composer:

```
$ composer require nepada/message-bus-nette
```

Register the extension in `config.neon`:

```
extensions:
    messageBus: Nepada\MessageBusNette\DI\MessageBusExtension
```

Usage
-----

[](#usage)

See [nepada/message-bus](https://github.com/nepada/message-bus) for the documentation of the core library.

### Logging

[](#logging)

The extension tries to autowire PSR compatible logger into logging middleware. If this doesn't work for you, specify the logger service in configuration explicitly:

```
messageBus:
    logger: @myLoggerService
```

### Nested command handling

[](#nested-command-handling)

Nested command handling is not allowed by default, this can be changed in configuration:

```
messageBus:
    allowNestedCommandHandling: true
```

### Doctrine

[](#doctrine)

[Doctrine ORM](https://github.com/doctrine/orm) specific features for message bus are provided by [nepada/message-bus-doctrine](https://github.com/nepada/message-bus-doctrine) package. Follow the link for more detailed documentation. Once you install the package, it gets detected by DI extension and all necessary services are set up.

With Doctrine integration:

- all commands are handled in a transaction and all changes are automatically flushed and commited after the handler successfully finishes, or rolled back on error,
- database transactions started outside of command bus are forbidden,
- entity manager is (optionally) cleared before and after the handling of every command.

Change or completely disable the default entity manager clearing logic:

```
messageBus:
    clearEntityManager
        onStart: false
        onSuccess: false
        onError: false
```

You can record your domain events inside entities implementing `Nepada\Bridges\MessageBusDoctrine\Events\ContainsRecordedEvents` and they will be automatically collected and dispatched on flush.

### Tip: use SearchExtension to auto-register command handlers and event subscribers

[](#tip-use-searchextension-to-auto-register-command-handlers-and-event-subscribers)

```
search:
    messageBusHandlers:
        in: %appDir%
        implements:
            - Nepada\MessageBus\Commands\CommandHandler
            - Nepada\MessageBus\Events\EventSubscriber
```

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance81

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 62.3% 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 ~196 days

Total

11

Last Release

153d ago

PHP version history (7 changes)v2.0.0PHP &gt;=7.4.0

v2.2.1PHP &gt;=7.4.0 &lt;8.2

v2.2.2PHP &gt;=7.4.0 &lt;8.3

v2.3.0PHP &gt;=8.1.0 &lt;8.4

v2.4.0PHP &gt;=8.2.0 &lt;8.4

v2.4.1PHP &gt;=8.2.0 &lt;8.5

v2.4.2PHP &gt;=8.2.0 &lt;8.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b4780fe328102c4572737db639653c29d3081d1d3e051467f00d7f09a776399?d=identicon)[xificurk](/maintainers/xificurk)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (144 commits)")[![xificurk](https://avatars.githubusercontent.com/u/117465?v=4)](https://github.com/xificurk "xificurk (87 commits)")

---

Tags

netteMessengermessage bus

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nepada-message-bus-nette/health.svg)

```
[![Health](https://phpackages.com/badges/nepada-message-bus-nette/health.svg)](https://phpackages.com/packages/nepada-message-bus-nette)
```

###  Alternatives

[nette/di

💎 Nette Dependency Injection Container: Flexible, compiled and full-featured DIC with perfectly usable autowiring and support for all new PHP features.

92140.6M1.4k](/packages/nette-di)[nette/bootstrap

🅱 Nette Bootstrap: the simple way to configure and bootstrap your Nette application.

68435.8M590](/packages/nette-bootstrap)[nette/web-project

Nette: Standard Web Project

10991.8k](/packages/nette-web-project)[kdyby/autowired

Syntax sugar for working with services in Nette Framework

30885.7k9](/packages/kdyby-autowired)[nasext/dependent-select-box

Dependent Select Box for Nette Framework.

21262.8k2](/packages/nasext-dependent-select-box)

PHPackages © 2026

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