PHPackages                             eleven-x/event - 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. eleven-x/event

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

eleven-x/event
==============

Event system

v0.1.0(9y ago)019MITPHP

Since Dec 29Pushed 9y agoCompare

[ Source](https://github.com/eleven-x/event)[ Packagist](https://packagist.org/packages/eleven-x/event)[ RSS](/packages/eleven-x-event/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Eleven-x Event
==============

[](#eleven-x-event)

Simple php event system

Install
-------

[](#install)

`composer require eleven-x/event`

API
---

[](#api)

### addListener($eventName, \\Closure $listener, $priority = 0, $once = false)

[](#addlistenereventname-closure-listener-priority--0-once--false)

Adds the listener function to the end of the listeners array for the event named `$eventName`

- `$eventName` event name
- `$listener` listener function
- `$priority` The higher the value, the higher the priority
- `$once` whether it is a one-time

### once($eventName, \\Closure $listener)

[](#onceeventname-closure-listener)

Adds a one time listener function for the event named `$eventName`. The next time `$eventName` is triggered, this listener is removed and then invoked.

- `$eventName` event name
- `$listener` listener function

### removeListener($eventName)

[](#removelistenereventname)

Removes the specified listener from the listener array for the event named `$eventName`.

- `$eventName` event name

### hasListeners($eventName)

[](#haslistenerseventname)

Whether there is a listener

- `$eventName` event name

### dispatch($eventName, Event $event = null)

[](#dispatcheventname-event-event--null)

Calls each of the listeners registered for the event named `$eventName`

- `$eventName` event name
- `$event` Event object

License
-------

[](#license)

MIT

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

3464d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22719721?v=4)[eleven-x](/maintainers/eleven-x)[@eleven-x](https://github.com/eleven-x)

---

Top Contributors

[![eleven-x](https://avatars.githubusercontent.com/u/22719721?v=4)](https://github.com/eleven-x "eleven-x (2 commits)")

### Embed Badge

![Health badge](/badges/eleven-x-event/health.svg)

```
[![Health](https://phpackages.com/badges/eleven-x-event/health.svg)](https://phpackages.com/packages/eleven-x-event)
```

###  Alternatives

[phpoption/phpoption

Option Type for PHP

2.7k566.1M169](/packages/phpoption-phpoption)[disc/php-zabbix-sender

PHP implementation of zabbix\_sender utility. Works with Zabbix 2.0.8, 2.1.7+ and 4.0 versions.

19161.5k1](/packages/disc-php-zabbix-sender)

PHPackages © 2026

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