PHPackages                             bodaclick/async-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. [Queues &amp; Workers](/categories/queues)
4. /
5. bodaclick/async-event-dispatcher

AbandonedArchivedLibrary[Queues &amp; Workers](/categories/queues)

bodaclick/async-event-dispatcher
================================

Library to asincronously dispatch events

1.0.1(12y ago)4592[2 issues](https://github.com/Bodaclick/AsyncEventDispatcher/issues)MITPHPPHP &gt;=5.4.0

Since Feb 7Pushed 12y agoCompare

[ Source](https://github.com/Bodaclick/AsyncEventDispatcher)[ Packagist](https://packagist.org/packages/bodaclick/async-event-dispatcher)[ Docs](http://github.com/Bodaclick)[ RSS](/packages/bodaclick-async-event-dispatcher/feed)WikiDiscussions master Synced today

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

AsyncEventDispatcher [![Build Status](https://camo.githubusercontent.com/1d4a28a676d726ee4385a2173273cf422b6d287c41741118a100d984c6e96eb2/68747470733a2f2f6170692e7472617669732d63692e6f72672f426f6461636c69636b2f4173796e634576656e74446973706174636865722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/Bodaclick/AsyncEventDispatcher)
======================================================================================================================================================================================================================================================================================================================================================

[](#asynceventdispatcher--)

This lib is intended to allow for multiple "drivers" (a.k.a listeners) that publish using a **fire and forget** strategy, mostly within pub/sub software.

The approach is inspired in Symfony's EventDispatcher component. However, the AsyncDispatcher registers the driver to **all** the events that have been registered (by adding a driver) if no event is passed, calling the driver for all of them.

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

[](#installation)

Install via composer. Add to your current composer.json `require` key: `"bodaclick/async-event-dispatcher":"1.0.x-dev" `

Usage
-----

[](#usage)

You have to add drivers to the `AsyncEventDispatcher` so when an `AsyncEventInterface` is fired it will be notified.

Adding a Driver
---------------

[](#adding-a-driver)

```
use BDK\AsyncEventDispatcher\AsyncEventDispatcher;
use BDK\AsyncEventDispatcher\AsyncDriver\RabbitMQDriver;

$driver = new RabbitMQDriver();
$ed = new AsyncEventDispatcher();

//Single event. It also registers the event
$ed->addDriver($driver, 'event.name');

//All events available
$ed->addDriver($driver);
```

Firing the even
---------------

[](#firing-the-even)

```
use BDK\AsyncEventDispatcher\AsyncEventInterface;

$event = new CustomEvent(); //implements AsyncEventInterface
$ed->dispatch($event);
```

Available drivers
-----------------

[](#available-drivers)

Only two drivers are available

- RabbitMQ
- File

Feel free to PR with new drivers!

Extension
=========

[](#extension)

Creating a new driver is as easy as implementing the `AsyncEventDriverInterface`

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

4476d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.3.3

1.0.1PHP &gt;=5.4.0

### Community

Maintainers

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

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

---

Top Contributors

[![egulias](https://avatars.githubusercontent.com/u/791806?v=4)](https://github.com/egulias "egulias (2 commits)")

---

Tags

asyncevent dispatcherdispatcher

### Embed Badge

![Health badge](/badges/bodaclick-async-event-dispatcher/health.svg)

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

###  Alternatives

[amphp/amp

A non-blocking concurrency framework for PHP applications.

4.4k123.4M323](/packages/amphp-amp)[react/socket

Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP

1.3k116.9M402](/packages/react-socket)[revolt/event-loop

Rock-solid event loop for concurrent PHP applications.

91943.6M138](/packages/revolt-event-loop)[amphp/parallel

Parallel processing component for Amp.

84746.2M74](/packages/amphp-parallel)[react/dns

Async DNS resolver for ReactPHP

535114.1M100](/packages/react-dns)[amphp/byte-stream

A stream abstraction to make working with non-blocking I/O simple.

392116.2M104](/packages/amphp-byte-stream)

PHPackages © 2026

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