PHPackages                             enl/deferred-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. enl/deferred-dispatcher

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

enl/deferred-dispatcher
=======================

Extension for Symfony EventDispatcher which adds the way to defer handle of fired Event into later stage of request execution.

v1.0.2(9y ago)020MIT LicensePHPPHP ~5.6 || ~7.0

Since Oct 28Pushed 9y ago1 watchersCompare

[ Source](https://github.com/enl/deferred-dispatcher)[ Packagist](https://packagist.org/packages/enl/deferred-dispatcher)[ Docs](https://github.com/enl/deferred-dispatcher)[ RSS](/packages/enl-deferred-dispatcher/feed)WikiDiscussions master Synced 4w ago

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

Deferred Event Dispatcher
=========================

[](#deferred-event-dispatcher)

This package extends [Symfony Event Dispatcher](https://symfony.com/doc/current/components/event_dispatcher.html) and adds an opportunity to defer a group of events to handle them later during request execution.

Bootstrap code:

```
$eventsToDefer = ['event-to-defer', 'another-event'];
$dispatcher = new DeferredEventDispatcher();
$dispatcher->addSubscriber(new DeferredSubscriber($eventsToDefer));
```

When you dispatch event from the list, it will be intercepted by `DeferredSubscriber` and stored to execute later. So that, after you did all the essential things you need to fire special event to replay events:

```
$dispatcher->dispatch(Events::PLAY_DEFERRED);
```

Subscribe `DeferredSubscriber` to another event
-----------------------------------------------

[](#subscribe-deferredsubscriber-to-another-event)

The idea of playing deferred events by firing `Events::PLAY_DEFERRED` may be not that good, because it sticks your codebase (not configuration) to this dispatcher.

So that, there is another opportunity:

```
$subscriber = new DeferredSubscriber($eventsList);
$dispatcher->addSubscriber($subscriber);
$dispatcher->addListener('kernel.terminate', [$subscriber, 'playDeferred']);
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

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

Total

3

Last Release

3525d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/50587ee520f9c618e4663b3e62d04bace5458d30d8644c71a1e510ed94075e1a?d=identicon)[enl](/maintainers/enl)

---

Top Contributors

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

---

Tags

symfonyevent dispatcherdeferpostpone

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/enl-deferred-dispatcher/health.svg)

```
[![Health](https://phpackages.com/badges/enl-deferred-dispatcher/health.svg)](https://phpackages.com/packages/enl-deferred-dispatcher)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[phpro/soap-client

A general purpose SoapClient library

8895.9M52](/packages/phpro-soap-client)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751284.3k37](/packages/civicrm-civicrm-core)[pugx/autocompleter-bundle

Add an autocomplete type to forms

93867.3k3](/packages/pugx-autocompleter-bundle)

PHPackages © 2026

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