PHPackages                             sinergi/dispatch - 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. sinergi/dispatch

Abandoned → [sinergi/event](/?search=sinergi%2Fevent)Library[Utility &amp; Helpers](/categories/utility)

sinergi/dispatch
================

PHP event dispatching library

0.3.0(11y ago)1079MITPHPPHP &gt;=5.4.0

Since Dec 25Pushed 11y ago1 watchersCompare

[ Source](https://github.com/sinergi/event)[ Packagist](https://packagist.org/packages/sinergi/dispatch)[ RSS](/packages/sinergi-dispatch/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Event
=====

[](#event)

[![Build Status](https://camo.githubusercontent.com/f9127726fccdf4dee0e524db3955f7e88c5333d51bfecffed8c0bd5339351501/68747470733a2f2f7472617669732d63692e6f72672f73696e657267692f6576656e742e737667)](https://travis-ci.org/sinergi/event)

A smart PHP event dispatching library that does not require your listeners to be aware of your subjects.

Requirements
------------

[](#requirements)

This library uses PHP 5.4+.

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

[](#installation)

It is recommended that you install the Event library [through composer](http://getcomposer.org/). To do so, add the following lines to your `composer.json` file.

```
{
    "require": {
       "sinergi/event": "dev-master"
    }
}
```

Usage
-----

[](#usage)

### Listener example

[](#listener-example)

```
use Sinergi\Event\ListenerInterface;

class MyListener implements ListenerInterface
{
    public function onUpdate(Subject $subject)
    {
        // do something
    }
}
```

### Subject example

[](#subject-example)

```
class Subject
{
    public $dispatcher;

    public function update()
    {
        $this->dispatcher->trigger($this, 'update');
    }
}
```

### Add listener to dispatcher

[](#add-listener-to-dispatcher)

```
use Sinergi\Event\Dispatcher;

$dispatcher = new Dispatcher();
$dispatcher->add(new MyListener());
```

### Bind it all together

[](#bind-it-all-together)

```
$subject = new Subject();
$subject->dispatcher = $dispatcher;
$subject->update();
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

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

Total

3

Last Release

4366d ago

### Community

Maintainers

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

---

Top Contributors

[![gabrielbull](https://avatars.githubusercontent.com/u/671923?v=4)](https://github.com/gabrielbull "gabrielbull (6 commits)")

---

Tags

eventhandlerlistenerobservermanagementDisptach

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sinergi-dispatch/health.svg)

```
[![Health](https://phpackages.com/badges/sinergi-dispatch/health.svg)](https://phpackages.com/packages/sinergi-dispatch)
```

###  Alternatives

[league/event

Event package

1.6k141.6M184](/packages/league-event)[kigkonsult/icalcreator

iCalcreator is the PHP implementation of rfc2445/rfc5545 and rfc updates, management of calendar information

2462.6M16](/packages/kigkonsult-icalcreator)[jbzoo/event

Library for event-based development

29760.0k5](/packages/jbzoo-event)[supervisorphp/event

Listen to Supervisor events in PHP

1442.4k](/packages/supervisorphp-event)

PHPackages © 2026

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