PHPackages                             vlakarados/eventure - 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. vlakarados/eventure

ActiveLibrary

vlakarados/eventure
===================

Auryn based event dispatching

04.5kPHP

Since Jun 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/vlakarados/eventure)[ Packagist](https://packagist.org/packages/vlakarados/eventure)[ RSS](/packages/vlakarados-eventure/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

eventure
========

[](#eventure)

[Auryn](https://github.com/rdlowrey/auryn) event dispatching

What
----

[](#what)

A very small library to work with simple events.

The whole point of this library is to allow [Auryn](https://github.com/rdlowrey/auryn) to inject dependencies straight to your event methods.

Install
-------

[](#install)

```
composer require vlakarados/eventure

```

How
---

[](#how)

- Create a class and extend `\Eventure\Dispatcher`

> Any public method in this class will be a registered event for the corresponding dispatcher.

> Two functions are used by the parent dispatcher class that may not be overriden (restricted event names): `dispatch()`, `hasEvent()`.

- Inject the class instance in any other object across your project and use the `dispatch($eventName)` method to send the event.

Example
-------

[](#example)

Examples are in the `example/` directory, the [ExampleDispatcher](example/ExampleDispatcher.php) and the [test bootstrap file](example/test.php).

TODO
----

[](#todo)

- Callback dispatchers
- Remove method restriction
- Better README.md
- Better documentation
- Any documentation, actually
- Dispatcher class factory (?)
- Static event calls like `\App\Dispatchers\User::dispatch('logIn', array('userId' => 12345))` or `\App\Dispatchers\User::logIn(array('userId' => 12345))` (?)

###  Health Score

23

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8db8ac12dfd5ace90a0a8595e2b9cf118f8d4d7478d0a30c2b6deb6f1c662b25?d=identicon)[vlakarados](/maintainers/vlakarados)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/vlakarados-eventure/health.svg)

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

PHPackages © 2026

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