PHPackages                             mindplay/funnel - 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. mindplay/funnel

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

mindplay/funnel
===============

Type-hinted event facility for PHP

1.0.1(11y ago)216LGPL-3.0+PHPPHP &gt;=5.3.0

Since May 23Pushed 11y ago1 watchersCompare

[ Source](https://github.com/mindplay-dk/funnel)[ Packagist](https://packagist.org/packages/mindplay/funnel)[ RSS](/packages/mindplay-funnel/feed)WikiDiscussions master Synced 1mo ago

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

funnel
======

[](#funnel)

[![Build Status](https://camo.githubusercontent.com/0ef9685287c5f0da5984521b0f4a324a25cee9d317dccb53fc1403cca781d30c/68747470733a2f2f7472617669732d63692e6f72672f6d696e64706c61792d646b2f66756e6e656c2e706e67)](https://travis-ci.org/mindplay-dk/funnel)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/49defb34157ac2cd651519e115048939f297697a0e5450d6910d8e176a2713e1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d696e64706c61792d646b2f66756e6e656c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mindplay-dk/funnel/?branch=master)

[![Code Coverage](https://camo.githubusercontent.com/83bff9886fb2d74f91c94b2717a466afbc8e4197185af1d3c9b786b9c36bb81a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d696e64706c61792d646b2f66756e6e656c2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mindplay-dk/funnel/?branch=master)

This is simple event sink (pub/sub) facility for PHP 5.3+ which attempts to improve on the performance and robustness of event facilities in general.

See "example.php" in the root-folder for an example of how to use this class.

By using type-hinted closures for event types (classes) as opposed to arbitrary strings (event names) or literal class names or function names as strings, the robustness is greatly improved - a modern IDE (such as Php Storm) can perform meaningful inspections, code can be safely refactored, and you can more easily navigate the code base e.g. by following real, static type-hints.

A means of optimizing performance is provided, by permitting the use of "proxy" functions for initialization of events to be submitted - loading and constructing an event object can be done conditionally, by "short circuiting" the event when no listeners for that type of event have been registered.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Every ~235 days

Total

2

Last Release

4142d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9445f567f43ee7a963270651e40e533634586f959e4df3d5398d001b1cb49be8?d=identicon)[mindplay.dk](/maintainers/mindplay.dk)

---

Top Contributors

[![mindplay-dk](https://avatars.githubusercontent.com/u/103348?v=4)](https://github.com/mindplay-dk "mindplay-dk (11 commits)")

### Embed Badge

![Health badge](/badges/mindplay-funnel/health.svg)

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

PHPackages © 2026

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