PHPackages                             maxkaemmerer/messaging-symfony-bridge - 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. maxkaemmerer/messaging-symfony-bridge

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

maxkaemmerer/messaging-symfony-bridge
=====================================

This is a bridge providing DI for maxkaemmerer/events and maxkaemmerer/command in symfony.

v1.0.0(7y ago)013MITPHPPHP &gt;=7.2

Since Jul 24Pushed 7y agoCompare

[ Source](https://github.com/maxkaemmerer/messaging-symfony-bridge)[ Packagist](https://packagist.org/packages/maxkaemmerer/messaging-symfony-bridge)[ RSS](/packages/maxkaemmerer-messaging-symfony-bridge/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

maxkaemmerer/messaging-symfony-bridge
=====================================

[](#maxkaemmerermessaging-symfony-bridge)

This is a bridge providing DI for maxkaemmerer/events and maxkaemmerer/command in symfony.

Just register the needed compiler passes in your symfony Kernel as seen below.

`CommandBus` and `EventCourier` are automatically registered as services.

Every symfony service implementing `CommandHandler` or `EventSubscriber` get automatically registered in the `EventCourier` or `CommandBus`.

So the only thing you need to do is start dispatching commands and events implementing the corresponding interfaces `Command` and `Event`, as seen in the documentation of [maxkaemmerer/events](https://github.com/maxkaemmerer/events) and [maxkaemmerer/commands](https://github.com/maxkaemmerer/commands). ;)

Symfony Kernel:

```
use MaxKaemmerer\MessagingSymfonyBridge\CompilerPass\CommandBusPass;
use MaxKaemmerer\MessagingSymfonyBridge\CompilerPass\EventCourierPass;
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
use Symfony\Component\Routing\RouteCollectionBuilder;

class Kernel extends BaseKernel
{

    // ...

    protected function build(ContainerBuilder $container)
    {
        $container->addCompilerPass(new CommandBusPass());
        $container->addCompilerPass(new EventCourierPass());
        parent::build($container);
    }

    // ...

 }

```

More detailed examples might follow.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

2

Last Release

2672d ago

Major Versions

v0.1.0 → v1.0.02019-03-07

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22802090?v=4)[Max Kämmerer](/maintainers/maxkaemmerer)[@maxkaemmerer](https://github.com/maxkaemmerer)

---

Top Contributors

[![maxkaemmerer](https://avatars.githubusercontent.com/u/22802090?v=4)](https://github.com/maxkaemmerer "maxkaemmerer (1 commits)")

---

Tags

phpcomposersymfonypackagelibraryeventsmessagingBridgecommands

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/maxkaemmerer-messaging-symfony-bridge/health.svg)

```
[![Health](https://phpackages.com/badges/maxkaemmerer-messaging-symfony-bridge/health.svg)](https://phpackages.com/packages/maxkaemmerer-messaging-symfony-bridge)
```

PHPackages © 2026

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