PHPackages                             phpgears/event-symfony-event-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. phpgears/event-symfony-event-dispatcher

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

phpgears/event-symfony-event-dispatcher
=======================================

Event bus implementation with Symfony's Event Dispatcher

0.3.1(6y ago)08MITPHPPHP ^7.1CI failing

Since Nov 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/phpgears/event-symfony-event-dispatcher)[ Packagist](https://packagist.org/packages/phpgears/event-symfony-event-dispatcher)[ Docs](https://github.com/phpgears/event-symfony-event-dispatcher)[ RSS](/packages/phpgears-event-symfony-event-dispatcher/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (16)Versions (7)Used By (0)

[![PHP version](https://camo.githubusercontent.com/d0b5687c6812c5d52d86a548e09db527eeb7860f82adbb677de00a36ddbed1b4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344372e312d3838393242462e7376673f7374796c653d666c61742d737175617265)](http://php.net)[![Latest Version](https://camo.githubusercontent.com/30c079f7abf6974a087fd9bb36b40c90a7e2d384d374e1303d4281ab032b6efb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70687067656172732f6576656e742d73796d666f6e792d6576656e742d646973706174636865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phpgears/event-symfony-event-dispatcher)[![License](https://camo.githubusercontent.com/0a60b77bfb40d8e4abe58279d21055b2ada1e77e97a587be65044ebea93d9271/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f70687067656172732f6576656e742d73796d666f6e792d6576656e742d646973706174636865722e7376673f7374796c653d666c61742d737175617265)](https://github.com/phpgears/event-symfony-event-dispatcher/blob/master/LICENSE)

[![Build Status](https://camo.githubusercontent.com/e9b9ed35c0696e721c61465b42f109a354bd793270a80876fc105f3964d06d80/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f70687067656172732f6576656e742d73796d666f6e792d6576656e742d646973706174636865722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/phpgears/event-symfony-event-dispatcher)[![Style Check](https://camo.githubusercontent.com/558787b54ca5558dc7830d6afdf44f70e3473b5276d1c1aca79365f6d5a30e26/68747470733a2f2f7374796c6563692e696f2f7265706f732f3135383934383836352f736869656c64)](https://styleci.io/repos/158948865)[![Code Quality](https://camo.githubusercontent.com/f4dbebd05ed707502cc085cba0cdd34eac689375f3b4ff75861f11f7abc3322e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f70687067656172732f6576656e742d73796d666f6e792d6576656e742d646973706174636865722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/phpgears/event-symfony-event-dispatcher)[![Code Coverage](https://camo.githubusercontent.com/3454d6fadaede1248fdb8fd274d7cc65d9f8fd8998ea7a56d9de2721c5d9e947/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f70687067656172732f6576656e742d73796d666f6e792d6576656e742d646973706174636865722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/phpgears/event-symfony-event-dispatcher)

[![Total Downloads](https://camo.githubusercontent.com/ff7973be108f2837130e64e5e980adfa8adc4a30cd9bd776ac17c946388a0eab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70687067656172732f6576656e742d73796d666f6e792d6576656e742d646973706174636865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phpgears/event-symfony-event-dispatcher/stats)[![Monthly Downloads](https://camo.githubusercontent.com/257a7df99e24959b3b53375680fa436a5d59e84dc69cffe064901de442c81905/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f70687067656172732f6576656e742d73796d666f6e792d6576656e742d646973706174636865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phpgears/event-symfony-event-dispatcher/stats)

Event bus Event Dispatcher
==========================

[](#event-bus-event-dispatcher)

Event bus implementation with Symfony's Event Dispatcher

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

[](#installation)

### Composer

[](#composer)

```
composer require phpgears/event-symfony-event-dispatcher

```

Usage
-----

[](#usage)

Require composer autoload file

```
require './vendor/autoload.php';
```

### Events Bus

[](#events-bus)

```
use Gears\Event\Symfony\Dispatcher\ContainerAwareDispatcher;
use Gears\Event\Symfony\Dispatcher\EventBus;
use Gears\Event\Symfony\Dispatcher\Dispatcher;

$eventToHandlerMap = [];

$symfonyDispatcher = new Dispatcher($eventToHandlerMap);
// OR
/** @var \Psr\Container\ContainerInterface $container */
$symfonyDispatcher = new ContainerAwareDispatcher($container, $eventToHandlerMap);

$eventBus = new EventBus($symfonyDispatcher);

/** @var \Gears\Event\Event $event */
$eventBus->dispatch($event);
```

Contributing
------------

[](#contributing)

Found a bug or have a feature request? [Please open a new issue](https://github.com/phpgears/event-symfony-event-dispatcher/issues). Have a look at existing issues before.

See file [CONTRIBUTING.md](https://github.com/phpgears/event-symfony-event-dispatcher/blob/master/CONTRIBUTING.md)

License
-------

[](#license)

See file [LICENSE](https://github.com/phpgears/event-symfony-event-dispatcher/blob/master/LICENSE) included with the source code for a copy of the license terms.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

5

Last Release

2412d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c50421f1ab4148354dc2dd5dcaba168656b17ea913b310d112deb39a6f73ca1?d=identicon)[juliangut](/maintainers/juliangut)

---

Top Contributors

[![juliangut](https://avatars.githubusercontent.com/u/1104131?v=4)](https://github.com/juliangut "juliangut (8 commits)")

---

Tags

eventsymfonybus

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/phpgears-event-symfony-event-dispatcher/health.svg)

```
[![Health](https://phpackages.com/badges/phpgears-event-symfony-event-dispatcher/health.svg)](https://phpackages.com/packages/phpgears-event-symfony-event-dispatcher)
```

###  Alternatives

[winzou/state-machine

A very lightweight yet powerful PHP state machine

52113.7M18](/packages/winzou-state-machine)[contributte/event-dispatcher

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

292.4M19](/packages/contributte-event-dispatcher)[pugx/autocompleter-bundle

Add an autocomplete type to forms

93861.6k3](/packages/pugx-autocompleter-bundle)[gomachan46/state-machine

simple state machine with annotations for PHP, inspired by AASM known as a Ruby state machine.

1893.9k](/packages/gomachan46-state-machine)

PHPackages © 2026

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