PHPackages                             downshiftorg/wp-event-emitter - 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. downshiftorg/wp-event-emitter

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

downshiftorg/wp-event-emitter
=============================

An object oriented event emitter for WordPress actions

6.0.0(8y ago)1811.3k↓33.3%3[2 issues](https://github.com/downshiftorg/wp-event-emitter/issues)2MITPHPPHP &gt;=5.4.0

Since Jun 1Pushed 8y ago4 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (14)Used By (2)

WP EventEmitter
===============

[](#wp-eventemitter)

An object oriented event emitter for WordPress actions

Motivation
----------

[](#motivation)

A familiar event interface that delegates to the global `add_action` and `do_action` functions of WordPress. It also presents a much more testable interface as it only uses the WP functions if they are available.

Methods
-------

[](#methods)

### on

[](#on)

Delegate to WordPress' [add\_action](https://codex.wordpress.org/Function_Reference/add_action) function. In test environments a local collection of listeners will be used.

### emit

[](#emit)

Delegate to WordPress' [do\_action](https://codex.wordpress.org/Function_Reference/do_action) function. In test environments a local collection of listeners will be used.

### filter

[](#filter)

Delegate to WordPress' [add\_filter](https://codex.wordpress.org/Function_Reference/add_filter) function. In test environments a local collection of listeners will be used.

### applyFilters

[](#applyfilters)

Delegate to WordPress' [apply\_filters](https://codex.wordpress.org/Function_Reference/apply_filters) function. In test environments a local collection of listeners will be used.

Tests
-----

[](#tests)

Tests use PHPUnit

```
$ vendor/bin/phpunit

```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 51.6% 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 ~80 days

Recently: every ~204 days

Total

13

Last Release

3045d ago

Major Versions

1.0.0 → 2.0.02015-06-18

2.0.1 → 3.0.02015-06-25

3.4.0 → 4.0.02017-06-23

4.0.0 → 5.0.02017-09-06

5.0.0 → 6.0.02018-01-15

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

4.0.0PHP &gt;=5.4.0

### Community

Maintainers

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

---

Top Contributors

[![jaredh159](https://avatars.githubusercontent.com/u/7050938?v=4)](https://github.com/jaredh159 "jaredh159 (16 commits)")[![brianium](https://avatars.githubusercontent.com/u/636651?v=4)](https://github.com/brianium "brianium (12 commits)")[![mdietsche](https://avatars.githubusercontent.com/u/11544705?v=4)](https://github.com/mdietsche "mdietsche (2 commits)")[![Shelob9](https://avatars.githubusercontent.com/u/1994311?v=4)](https://github.com/Shelob9 "Shelob9 (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/downshiftorg-wp-event-emitter/health.svg)

```
[![Health](https://phpackages.com/badges/downshiftorg-wp-event-emitter/health.svg)](https://phpackages.com/packages/downshiftorg-wp-event-emitter)
```

###  Alternatives

[magepow/flipbook

Magento 2 Flipbook

1013.8k](/packages/magepow-flipbook)[palantirnet/drupal-skeleton

A Drupal project template.

141.4k](/packages/palantirnet-drupal-skeleton)

PHPackages © 2026

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