PHPackages                             php-ddd/php-ddd-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. php-ddd/php-ddd-bundle

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

php-ddd/php-ddd-bundle
======================

Library to manage event

v1.0.0(11y ago)44.3kMITPHPPHP &gt;=5.3.3

Since Dec 31Pushed 11y ago3 watchersCompare

[ Source](https://github.com/php-ddd/php-ddd-bundle)[ Packagist](https://packagist.org/packages/php-ddd/php-ddd-bundle)[ RSS](/packages/php-ddd-php-ddd-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (2)Used By (0)

PhpDDDBundle [![Build Status](https://camo.githubusercontent.com/eb2fc6b69671809b1a830a823a3ef3e2fc4244c61abb44db338a614f4c64a7d5/68747470733a2f2f7472617669732d63692e6f72672f7068702d6464642f7068702d6464642d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/php-ddd/php-ddd-bundle) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/049ebcc94617372a3026e29bfdf06860494f4557d2a44ec9ad877c0ea7048dab/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7068702d6464642f7068702d6464642d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/php-ddd/php-ddd-bundle/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/8e620fc65f2b6436815c996d05fb78999083adb0acd6cbf5bdbb3487e1452fa0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7068702d6464642f7068702d6464642d62756e646c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/php-ddd/php-ddd-bundle/?branch=master) [![SensioLabsInsight](https://camo.githubusercontent.com/ad1c4b97d421a4371b44efd6d0074efd87f092d7a93927587595877318cb0c13/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f38336161626139632d663535392d343439312d613533612d3637363339366435313063312f6d696e692e706e67)](https://insight.sensiolabs.com/projects/83aaba9c-f559-4491-a53a-676396d510c1)
==================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#phpdddbundle----)

PhpDDDBundle provides some tools to integrate php-ddd/domain-event and php-ddd/command inside your Symfony application.

Features
--------

[](#features)

- Services for SequentialCommandBus and CommandHandlerLocator
- Services for EventBus and EventListenerLocator
- A service tag to link Command with CommandHandler easily
- A service tag to link Event with EventListener easily
- A `php-ddd:command-bus:debug` Symfony command to list every Command/CommandHandler for a given CommandBus
- A `php-ddd:event-bus:debug` Symfony command to list every Event/EventListener attached to a given EventBus

Usage
-----

[](#usage)

### Link a CommandHandler to a Command using tags

[](#link-a-commandhandler-to-a-command-using-tags)

The easiest way to link a CommandHandler to a Command is by using service tag `php_ddd.command_handler` on the CommandHandler:

```
# services.yml
services:
    my.command_handler.foo:
        class: My/CommandHandler/FooCommandHandler
        tags:
            - { name: php_ddd.command_handler, command: My/Command/Foo }
```

The CommandHandler will be automatically registered in the `phpddd_command.handler_locator` service which correspond to a CommandHandlerLocator. This CommandHandlerLocator is then passed to the `phpddd_command.bus` service which correspond to a SequentialCommandBus by default.

### Add an EventListener listening to an Event using tags

[](#add-an-eventlistener-listening-to-an-event-using-tags)

It works the same way as for CommandHandler and Command:

```
# services.yml
services:
    my.listener.bar:
        class: My/EventListener/BarEventListener
        tags:
            - { name: php_ddd.event_listener, event: Other/Event/Bar }
```

The EventListener will be automatically registered in the `phpddd_event.listener_locator` service which correspond to an EventListenerLocator. This EventListener is then passed to the `phpddd_event.bus` service which correspond to an EventBus by default.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

4156d ago

### Community

Maintainers

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/php-ddd-php-ddd-bundle/health.svg)

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

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[shivas/versioning-bundle

Symfony application versioning, simple console command to manage version (with providers e.g. git tag) of your application using Semantic Versioning 2.0.0 recommendations

1121.2M1](/packages/shivas-versioning-bundle)[symfony/ai-bundle

Integration bundle for Symfony AI components

30282.3k6](/packages/symfony-ai-bundle)[php-soap/wsdl

Deals with WSDLs

173.5M12](/packages/php-soap-wsdl)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)

PHPackages © 2026

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