PHPackages                             walmsles/silverstripe-event-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. walmsles/silverstripe-event-dispatch

AbandonedArchivedSilverstripe-module[Utility &amp; Helpers](/categories/utility)

walmsles/silverstripe-event-dispatch
====================================

Integrate walmsles/event-dispatch into Silverstripe

1.0.1(9y ago)11401BSDPHPPHP &gt;=5.3.0

Since May 10Pushed 9y agoCompare

[ Source](https://github.com/walmsles/silverstripe-event-dispatch)[ Packagist](https://packagist.org/packages/walmsles/silverstripe-event-dispatch)[ RSS](/packages/walmsles-silverstripe-event-dispatch/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (6)Used By (0)

silverstripe-event-dispatch
===========================

[](#silverstripe-event-dispatch)

Silverstripe integration of walmsles/event-dispatch PHP module.

Maintainer Contact
==================

[](#maintainer-contact)

- Michael Walmsley ()

Requirements
============

[](#requirements)

- Silverstripe 3.3 (earlier versions probably OK but not tested)

Installation
============

[](#installation)

> composer install walmsles/silverstripe-event-dispatch

Documentation
=============

[](#documentation)

A nice decoupled event dispatch model integrated into Silverstripe using a publish/subscribe mechanism.

Event Module allows registration of listeners to arbitrary events which can be fired anywhere and at anytime. Listeners are any valid **callable** PHP structure as defined by PHP's [call\_user\_func\_array](http://php.net/manual/en/function.call-user-func-array.php). e.g. Closure, function name, array definining Class instance and method (`array($this, 'myMethod')`)

Calling Methods
---------------

[](#calling-methods)

There are two ways to call functions on the event dispatcher that have identical results

- `EventDispatcher::dispatch('myEvent', array('event data', 'event data 2'));`
- `EventDispatcher::inst()->dispatch('myEvent', array('event data', 'event data 2'));`

While the first method is more concise as it uses `__callStatic` to forward the calls the second method will allow your IDE to autocomplete the available methods. The choice is yours.

```
EventDispatcher::inst()->subscribe('myEvent', function($myData1, $myData2) {
    // so somehting with $myData

    return $myData1 . ' ' . $myData2;
});

/** @var array $responses */
$responses = EventDispatcher::inst()->dispatch('myEvent', array('event data', 'event data 2'));

```

Full documentation is available [here](https://github.com/walmsles/event-dispatch)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~64 days

Total

4

Last Release

3459d ago

Major Versions

0.1.1 → 1.0.02016-11-17

### Community

Maintainers

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

---

Top Contributors

[![hailwood](https://avatars.githubusercontent.com/u/709773?v=4)](https://github.com/hailwood "hailwood (5 commits)")[![walmsles](https://avatars.githubusercontent.com/u/2704782?v=4)](https://github.com/walmsles "walmsles (1 commits)")

---

Tags

datetimetimedate

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/walmsles-silverstripe-event-dispatch/health.svg)

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

###  Alternatives

[league/period

Time range API for PHP

7335.4M21](/packages/league-period)[brick/date-time

Date and time library

3623.3M60](/packages/brick-date-time)[aeon-php/calendar

PHP type safe, immutable calendar library

2079.7M16](/packages/aeon-php-calendar)[tplaner/when

Date/Calendar recursion library.

5261.0M5](/packages/tplaner-when)[kartik-v/php-date-formatter

A Javascript datetime formatting and manipulation library using PHP date-time formats.

461.5M3](/packages/kartik-v-php-date-formatter)[dater/dater

Compact PHP library for working with date/time in different formats &amp; timezones.

14282.3k](/packages/dater-dater)

PHPackages © 2026

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