PHPackages                             objective-php/events-handler - 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. objective-php/events-handler

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

objective-php/events-handler
============================

Events Handler for ObjectivePHP

v3.1.0(6y ago)0125.2k↓29.5%13GPL-3.0PHPPHP &gt;=7.3

Since Aug 9Pushed 6y ago5 watchersCompare

[ Source](https://github.com/objective-php/events-handler)[ Packagist](https://packagist.org/packages/objective-php/events-handler)[ Docs](https://github.com/objective-php/events-handler)[ RSS](/packages/objective-php-events-handler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (15)Used By (3)

Objective PHP / Events Handler [![Build Status](https://camo.githubusercontent.com/402e621bdf040ceb191d3206ab4f6ad6a491fd906774cf83633be30f7032653a/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6f626a6563746976652d7068702f6576656e74732d68616e646c65722e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/objective-php/events-handler)
===============================================================================================================================================================================================================================================================================================================================================================

[](#objective-php--events-handler-)

Library topic
-------------

[](#library-topic)

Simple events handler meant to work together with our objective-php/matcher.

It allows to bind events using patterns as defined in Matcher documentation (using wildcards and alternatives...)

Concept
-------

[](#concept)

Nothing really new here from the events handling point of view. The real specific feature is more related to the way the callbacks are bound to events, thanks to Matcher.

Usage
-----

[](#usage)

### Callback binding

[](#callback-binding)

Binding a callback to an event is quite straight forward:

```
$eventsHandler = new EventsHandler();
$eventsHandler->bind('event.name', function($event) {
    echo 'Event ' . $event->getName() . ' was just fired!');
    }
  );
```

### Event triggering

[](#event-triggering)

Once again, this is very simple:

```
$eventsHandler->trigger('event.name'); // will echo 'Event event.name was just fired!'
```

More documentation to come soon!

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 93.2% 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 ~109 days

Recently: every ~158 days

Total

14

Last Release

2510d ago

Major Versions

v0.9.1 → v1.0.12016-05-06

v1.0.7 → v2.0.02018-04-09

v2.0.0 → v3.0.02019-06-03

PHP version history (3 changes)v0.9.0PHP &gt;=5.6.0

v1.0.1PHP &gt;=7.0

v3.0.0PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/35ff61d55f3f648d8c1046aac3892fba4781067c98c5cf7e364767f8ca033166?d=identicon)[gauthier](/maintainers/gauthier)

---

Top Contributors

[![gauthier](https://avatars.githubusercontent.com/u/32955?v=4)](https://github.com/gauthier "gauthier (41 commits)")[![fanshan](https://avatars.githubusercontent.com/u/1986015?v=4)](https://github.com/fanshan "fanshan (2 commits)")[![jheussler](https://avatars.githubusercontent.com/u/31237854?v=4)](https://github.com/jheussler "jheussler (1 commits)")

---

Tags

eventsobjective phpevents handler

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/objective-php-events-handler/health.svg)

```
[![Health](https://phpackages.com/badges/objective-php-events-handler/health.svg)](https://phpackages.com/packages/objective-php-events-handler)
```

###  Alternatives

[doctrine/event-manager

The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.

6.1k501.1M115](/packages/doctrine-event-manager)[psr/event-dispatcher

Standard interfaces for event handling.

2.3k618.8M865](/packages/psr-event-dispatcher)[laminas/laminas-eventmanager

Trigger and listen to events within a PHP application

1.0k69.8M225](/packages/laminas-laminas-eventmanager)[simshaun/recurr

PHP library for working with recurrence rules

1.6k15.7M40](/packages/simshaun-recurr)[chelout/laravel-relationship-events

Missing relationship events for Laravel

5252.3M17](/packages/chelout-laravel-relationship-events)[tormjens/eventy

The WordPress filter/action system in Laravel

438912.9k16](/packages/tormjens-eventy)

PHPackages © 2026

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