PHPackages                             phmlabs/annovent - 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. phmlabs/annovent

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

phmlabs/annovent
================

Simple lightweight event dispatcher using annotations for registering listeners

1.0.1(10y ago)113.3k2[1 issues](https://github.com/phmLabs/Annovent/issues)MITPHP

Since Jun 4Pushed 7y ago3 watchersCompare

[ Source](https://github.com/phmLabs/Annovent)[ Packagist](https://packagist.org/packages/phmlabs/annovent)[ RSS](/packages/phmlabs-annovent/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

\#Annovent

Annovent is a simple to use event dispatcher inspired by the symfony component event dispatching implementation. It tries to provide all the features symfony does with some useful extensions.

\##Simple Usage

The Annovent dispatcher can be used in a simple and standard way as you are used from symfony:

```
$dispatcher = new Dispatcher();
$dispatcher->connect('SomeComponent.Render', array($listener, 'Method1'));
$dispatcher->notify(new Event('SomeComponent.Render', array('foo' => 'bar'));
```

\##Namespace

An extra feature of this event dispatcher is the so called namespacing. It is possible to register a lister to a complete set events belonging to a special namespace.

```
$dispatcher->connect('SomeComponent.*', array($listener, 'Method1'));
$dispatcher->connect('*', array($listener, 'Method2'));
```

The first listener will be notified whenever a event is fired that starts with SomeComponent. The second one will always be notified.

\##Annotation

Connection a listener to a special event is not limited to the connect method. It is also possible to register a listener using annotation (see doctrine common).

```
class Listener
{
  /**
   * @Event("SomeComponent.Render")
   */
  public function method1(Event $event)
  {
  }
}

$dispatcher->connectListener( new Listener );
```

Using the connectListener method it is possible to connect a bunch of callbacks at once.

\##Named Parameters

If desired the event dispatcher can be used with named parameters.

```
class Listener2
{
  /**
   * @Event("SomeComponent.Render")
   */
  public function method1($argument1, $foo)
  {
  }
}
$dispatcher->notify(new Event('SomeComponent.Render', array('foo' => 'bar', 'argument1' => 'arg1' ));
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~224 days

Total

2

Last Release

3777d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/484ac8fdab8874b46d6890cba143e75f6ed5369749d35c76a8ca87fa5857ebc0?d=identicon)[phmLabs](/maintainers/phmLabs)

---

Top Contributors

[![Baachi](https://avatars.githubusercontent.com/u/833645?v=4)](https://github.com/Baachi "Baachi (4 commits)")[![phphatesme](https://avatars.githubusercontent.com/u/207413?v=4)](https://github.com/phphatesme "phphatesme (3 commits)")[![phmLabs](https://avatars.githubusercontent.com/u/650537?v=4)](https://github.com/phmLabs "phmLabs (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phmlabs-annovent/health.svg)

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

###  Alternatives

[friendsofsymfony/comment-bundle

This Bundle provides threaded comment functionality for Symfony applications

460751.2k5](/packages/friendsofsymfony-comment-bundle)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[koriym/attributes

An annotation/attribute reader

433.4M12](/packages/koriym-attributes)[hostnet/entity-tracker-component

Provides an event when a Tracked entity changes

16158.1k4](/packages/hostnet-entity-tracker-component)[gomachan46/state-machine

simple state machine with annotations for PHP, inspired by AASM known as a Ruby state machine.

1893.9k](/packages/gomachan46-state-machine)[hostnet/accessor-generator-plugin-lib

Generate get, set, add, remove methods on the fly.

10118.9k](/packages/hostnet-accessor-generator-plugin-lib)

PHPackages © 2026

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