PHPackages                             exan/eventer - 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. exan/eventer

ActiveLibrary

exan/eventer
============

Event emitting library

1.0.3(3y ago)01.9k↑16.7%2MITPHP

Since May 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/rxak-php/Eventer)[ Packagist](https://packagist.org/packages/exan/eventer)[ RSS](/packages/exan-eventer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (2)

Eventer
=======

[](#eventer)

[![Eventer Code Quality Assurance](https://github.com/Exanlv/eventer/actions/workflows/code-quality.yml/badge.svg)](https://github.com/Exanlv/eventer/actions/workflows/code-quality.yml) [![Eventer Unit Tests](https://github.com/Exanlv/eventer/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/Exanlv/eventer/actions/workflows/unit-tests.yml)

Object oriented event emitter for PHP

For the majority of projects, you should probably use `evenement/evenement`. This may in some instances produce hard to follow code, in which case this approach may be more desirable.

### Install

[](#install)

```
composer require exan/eventer
```

### Example usage

[](#example-usage)

```
class SomeEvent implements EventInterface {
    public function __construct($myFirstArg, $mySecondArg)
    {
    }

    public static function getEventName(): string
    {
        return 'Some Event';
    }

    public function filter(): bool
    {
        return true; // return false to skip execution
    }

    public function execute(): void
    {
        // Your event handling code
    }
}
```

```
$eventer = new Eventer();

$eventer->register(SomeClass::class); // Listen to events regularly
$eventer->registerOnce(SomeClass::class); // Listen to a single event
$eventer->before(SomeClass::class); // Listen to events regularly, executed before events registered with `register`
$eventer->beforeOnce(SomeClass::class); // Listen to a single event, executed before events registered with `register`

$eventer->emit('Some Event', ['my first arg', 'my second arg']);
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity47

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

Total

4

Last Release

1104d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a13e10cab42385db1f6f4f0bfd96f8c63ec419746648db02b30e7ea02d2f5df?d=identicon)[exan](/maintainers/exan)

---

Top Contributors

[![Exanlv](https://avatars.githubusercontent.com/u/51094537?v=4)](https://github.com/Exanlv "Exanlv (11 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/exan-eventer/health.svg)

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

PHPackages © 2026

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