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

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

viloveul/event
==============

Event Dispatcher of Viloveul

v1.1.0(6y ago)2156MITPHPPHP ~7.0

Since Dec 28Pushed 6y ago2 watchersCompare

[ Source](https://github.com/viloveul/event)[ Packagist](https://packagist.org/packages/viloveul/event)[ Docs](http://www.viloveul.com)[ RSS](/packages/viloveul-event/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (8)Dependencies (3)Versions (10)Used By (0)

[![Build Status](https://camo.githubusercontent.com/a8de753bd429a20ed85b6f72cfeb77408eca0cb426ccfd551b6488fa559b3a08/68747470733a2f2f7472617669732d63692e636f6d2f76696c6f7665756c2f6576656e742e737667)](https://travis-ci.com/viloveul/event)[![Total Downloads](https://camo.githubusercontent.com/d88400960df42b0db711ba0838fdd9ff6760c847ac541e1b9f8430bca5d59a86/68747470733a2f2f706f7365722e707567782e6f72672f76696c6f7665756c2f6576656e742f642f746f74616c2e737667)](https://packagist.org/packages/viloveul/event)[![Latest Stable Version](https://camo.githubusercontent.com/92bf7a9bbb7ff9b349e322eff3d6fd1e7f156e149ba4c71e74e5799fe60e954a/68747470733a2f2f706f7365722e707567782e6f72672f76696c6f7665756c2f6576656e742f762f737461626c652e737667)](https://packagist.org/packages/viloveul/event)

Installation
============

[](#installation)

make sure your php version &gt; 7.0

```
composer require viloveul/event
```

How
---

[](#how)

```
require __DIR__ . '/vendor/autoload.php';

class MyEvent
{
    /**
     * @var string
     */
    public $name = 'foo';
}

class MyListener
{
    /**
     * @param MyEvent $event
     */
    public function __invoke(MyEvent $event)
    {
        if ($event->name === 'foo') {
            throw new Exception("foo");
        } else {
            throw new Exception("bar");
        }
    }
}

$provider = new Viloveul\Event\Provider();
$provider->addListener(new MyListener());

$dispatcher = new Viloveul\Event\Dispatcher($provider);
$dispatcher->dispatch(new MyEvent());
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Recently: every ~36 days

Total

9

Last Release

2522d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/609a03f1a38d80aa5cf333dd556cb748371dbcbc880f3c580ecea72ff0fb228b?d=identicon)[zafex](/maintainers/zafex)

---

Top Contributors

[![zafex](https://avatars.githubusercontent.com/u/12587685?v=4)](https://github.com/zafex "zafex (20 commits)")

---

Tags

eventevent-dispatcherphpviloveulviloveul-frameworkeventlibrarycomponentzafexviloveulfajrulaz

###  Code Quality

TestsCodeception

### Embed Badge

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

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

PHPackages © 2026

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