PHPackages                             twc/bus-bundle - 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. twc/bus-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

twc/bus-bundle
==============

Provide simple way to implement Message Bus concept in Symfony 4

v1.2.0(1y ago)0299MITPHPPHP ^7.1|^8.0

Since Aug 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/thewalkingcoder/TwcBusBundle)[ Packagist](https://packagist.org/packages/twc/bus-bundle)[ Docs](https://github.com/thewalkingcoder/TwcBusBundle)[ RSS](/packages/twc-bus-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (2)Versions (14)Used By (0)

TwcBusBundle
============

[](#twcbusbundle)

Provide simple way to implement Message Bus concept in Symfony.

Before start
------------

[](#before-start)

Thank's [@lilobase](https://twitter.com/Lilobase) for you excellent talk at [PHP TOUR 2018](https://afup.org/talks/2628-cqrs-fonctionnel-event-sourcing-domain-driven-design).

Thank's [@matGiWeb](https://twitter.com/matGiWeb) for you approach with [cqrs-skeleton](https://github.com/magi-web/cqrs-skeleton)

Remember
--------

[](#remember)

CQRS (Command Query Responsibility Segregation) it's an architectural pattern that aims to separate the **writing** (Command) and **reading** (Query).

Pré-requis
----------

[](#pré-requis)

symfony powerfull DI with autowire and autoconfigure enable

```
services:

    # default configuration for services in *this* file
    _defaults:
        autowire: true      # Automatically injects dependencies in your services.
        autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
        public: false

```

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

[](#installation)

```

composer require twc/bus-bundle

```

How to use ?
------------

[](#how-to-use-)

If you know CQRS pattern, you only have to implement the desired interface

### About Commands

[](#about-commands)

topicInterfaceCommandTwc\\BusBundle\\Command\\Interfaces\\CommandCommandHandlerTwc\\BusBundle\\Command\\Interfaces\\CommandHandlerMiddlewareTwc\\BusBundle\\Command\\Interfaces\\CommandBusMiddleware### About Events

[](#about-events)

topicInterfaceEventTwc\\BusBundle\\Event\\Interfaces\\EventEventHandlerTwc\\BusBundle\\Event\\Interfaces\\EventHandler### About Queries

[](#about-queries)

topicInterfaceQueryTwc\\BusBundle\\Query\\Interfaces\\QueryQueryHandlerTwc\\BusBundle\\Event\\Interfaces\\QueryHandlerAbout Bus
---------

[](#about-bus)

topicInterfaceCommandBusDispatcherTwc\\BusBundle\\Command\\CommandBusDispatcherEventBusDispatcherTwc\\BusBundle\\Event\\EventBusDispatcherQueryBusDispatcherTwc\\BusBundle\\Query\\QueryBusDispatcherThat's all !

CommandBus, EventBus, QueryBus will do the work, thank's Dependencies Injection and autowiring in symfony.

Samples
=======

[](#samples)

- [exemple (fr)](./docs/cqrs_fr.md)

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance46

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity71

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

Recently: every ~517 days

Total

13

Last Release

412d ago

PHP version history (2 changes)v1.0.0PHP ^7.1

v1.2.0PHP ^7.1|^8.0

### Community

Maintainers

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

---

Top Contributors

[![thewalkingcoder](https://avatars.githubusercontent.com/u/10476280?v=4)](https://github.com/thewalkingcoder "thewalkingcoder (3 commits)")

---

Tags

buscqrssymfonyphpsymfonycommand buscqrsmessage busdomain-eventsSymfony 4symfony 5cqs

### Embed Badge

![Health badge](/badges/twc-bus-bundle/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M380](/packages/easycorp-easyadmin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[shopware/storefront

Storefront for Shopware

684.6M225](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M545](/packages/shopware-core)[ecotone/symfony-bundle

Ecotone for Symfony — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Symfony Messenger, via PHP attributes.

11249.0k1](/packages/ecotone-symfony-bundle)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

515100.5k3](/packages/web-auth-webauthn-framework)

PHPackages © 2026

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