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

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

t4web/event-subscriber
======================

ZF2 Module. One place for manage application events

2.0.0(7y ago)17.6k—0%3BSD-3-ClausePHPPHP &gt;=5.5.0

Since Feb 20Pushed 7y ago3 watchersCompare

[ Source](https://github.com/t4web/EventSubscriber)[ Packagist](https://packagist.org/packages/t4web/event-subscriber)[ Docs](https://github.com/t4web/EventSubscriber)[ RSS](/packages/t4web-event-subscriber/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (4)Versions (7)Used By (3)

EventSubscriber
===============

[](#eventsubscriber)

ZF2 Module. One place for manage application events.

Instalation
===========

[](#instalation)

Add to your `composer.json`:

```
"t4web/event-subscriber": "~1.0.0"
```

And to your `config/application.config.php`:

```
'modules' => [
    // ...
    'T4web\EventSubscriber',
    // ...
],
```

Problem
=======

[](#problem)

As usual your event handlers everywhere, and you (or team member) don't know what will be executed when you see this code `$this->getEventManager()->trigger($event);`. You spend many time with `Crtl+F` in whole project.

Solution
========

[](#solution)

It just recommendation (or team rule) - describe all your handlers in one place in your `module.config.php`:

```
    'events' => [
        'Zend\Mvc\Application' => [
            'render' => [
                SomeListenerOne::class,
            ],
        ],
        'Users\User\Infrastructure\Repository' => [
            'create' => [
                SomeListenerTwo::class,
                SomeListenerThree::class,
            ],
        ],
        'Users\User\Infrastructure\Repository' => [
            'status:change' => [
                CreateTimelineEntryListener::class,
                UserNotifyListener::class,
                ExpireUserTokensListener::class,
                AdminLogListener::class,
            ],
        ],

        // ...
        'EventIdentifier' => [
            'EventName' => [
                'Callback1', // can be invokable class
                'Callback2',
                // ...
                'CallbackN',
            ],
        ],
    ],
```

`T4web\EventSubscriber` - read this config and attach every handler in described event.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 94.1% 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 ~177 days

Recently: every ~221 days

Total

6

Last Release

2844d ago

Major Versions

0.0.10 → 1.0.02016-03-10

1.0.2 → 2.0.02018-07-27

PHP version history (3 changes)0.0.9PHP ^5.5

0.0.10PHP ^5.5 || ^7.0

2.0.0PHP &gt;=5.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d6b9ab1c535f3a27bd3b2bb97bc7d43c611cb69731861d2c2d60e1174b27ec4?d=identicon)[maxgu](/maintainers/maxgu)

---

Top Contributors

[![maxgu](https://avatars.githubusercontent.com/u/208688?v=4)](https://github.com/maxgu "maxgu (16 commits)")[![sebaks](https://avatars.githubusercontent.com/u/9897880?v=4)](https://github.com/sebaks "sebaks (1 commits)")

---

Tags

eventszf2zf2 module

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[zf-commons/zfc-base

A set of genetic (abstract) classes which are commonly used across multiple modules.

1441.1M25](/packages/zf-commons-zfc-base)[snapshotpl/zf-snap-geoip

MaxMind GeoIP Module for Zend Framework 2

1512.9k](/packages/snapshotpl-zf-snap-geoip)[akrabat/akrabat-session

A Zend Framework 2 module for configuring sessions

134.5k](/packages/akrabat-akrabat-session)

PHPackages © 2026

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