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

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

zippovich2/event-dispatcher
===========================

Simple event dispatcher

v1.0.0(5y ago)04MITPHPPHP ^7.2.5

Since Jun 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Zippovich2/event-dispatcher)[ Packagist](https://packagist.org/packages/zippovich2/event-dispatcher)[ RSS](/packages/zippovich2-event-dispatcher/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Event Dispatcher
================

[](#event-dispatcher)

Simple event dispatcher.

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

[](#installation)

```
$ composer require zippovich2/event-dispatcher
```

Usage
-----

[](#usage)

1. Default usage:

    ```
    use Zippovich2\EventDispatcher\EventDispatcher;

    $dispatcher = new EventDispatcher();

    // Add subscriber to events
    $dispatcher->subscribe('event1', 'Subscriber::callback');
    $dispatcher->subscribe('event2', 'Subscriber::callback2');

    // Getting event subscribers
    $event1Subscribers = $dispatcher->getSubscribers('event1');

    // Or get subscribers from all events
    $allSubscribers = $dispatcher->getSubscribers();

    // Dispatch event
    $dispatcher->dispatch('eventName');
    ```
2. Using `TraceableEventDispatcher`:

    ```
    use Zippovich2\EventDispatcher\TraceableEventDispatcher;

    $dispatcher = new TraceableEventDispatcher();

    // Add subscriber to events
    $dispatcher->subscribe('event1', 'Subscriber::callback');
    $dispatcher->subscribe('event2', 'Subscriber::callback2');

    // Dispatch event return callstack tree
    $callstackTree = $dispatcher->dispatch('eventName');

    // Getting raw callstack
    $callStack = $dispatcher->getCallStack();
    ```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

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

Unknown

Total

1

Last Release

2169d ago

### Community

Maintainers

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

---

Top Contributors

[![Zippovich2](https://avatars.githubusercontent.com/u/26221873?v=4)](https://github.com/Zippovich2 "Zippovich2 (10 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[pyrech/composer-changelogs

Display changelogs after each composer update

5904.0M25](/packages/pyrech-composer-changelogs)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[ecotone/ecotone

Supporting you in building DDD, CQRS, Event Sourcing applications with ease.

558549.8k17](/packages/ecotone-ecotone)[geocoder-php/plugin

Plugins to Geocoder providers

705.1M2](/packages/geocoder-php-plugin)[verbb/comments

Add comments to your site.

13753.1k](/packages/verbb-comments)[pocketmine/bedrock-block-upgrade-schema

Schemas describing how to upgrade saved block data in older Minecraft: Bedrock Edition world saves

23355.4k5](/packages/pocketmine-bedrock-block-upgrade-schema)

PHPackages © 2026

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