PHPackages                             reestyle/peavents - 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. reestyle/peavents

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

reestyle/peavents
=================

Basic event handler

00PHP

Since Aug 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ReeStyle/peavents)[ Packagist](https://packagist.org/packages/reestyle/peavents)[ RSS](/packages/reestyle-peavents/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Peavents
========

[](#peavents)

Introduction
------------

[](#introduction)

> Peavents stands for PHP events - with a twist. I just thought throwing in a pea would be fun... :)

Peavents is a basic event system. Sort of like a hook system, but slightly different.

Requirements
------------

[](#requirements)

- PHP 7.0+

This project makes use of datatype type hinting and return value type. Both classes are based on ArrayObject classes.

Installation
------------

[](#installation)

Use composer:

`$ composer require reestyle/peavents`

Remember to use the autoloader.

Basic usage:
------------

[](#basic-usage)

```
    $registry = \Peavents\Registry::instance();

    $event = $registry->make('event_name');

    $event
        ->setParams(['hello world'])
        ->attach(function($a) {
            print $a;
        })
        ->attach(function($a) {
            print ' - and another ' . $a;
        });

    $registry->raise('event_name');
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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/86612611192659fa69deddc8509eb774edd662a8b32b79ee6fd780b6c5a5262a?d=identicon)[reestyle-it](/maintainers/reestyle-it)

---

Top Contributors

[![reestyle-it](https://avatars.githubusercontent.com/u/1517435?v=4)](https://github.com/reestyle-it "reestyle-it (4 commits)")

### Embed Badge

![Health badge](/badges/reestyle-peavents/health.svg)

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

###  Alternatives

[dmind/cookieman

Provides a user consent popup. It asks for approval to include tracking objects (cookies, images or any HTML) and includes the objects when consented. It also removes cookies after the consent has been revoked.

39190.5k](/packages/dmind-cookieman)

PHPackages © 2026

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