PHPackages                             daniellucia/hooks - 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. [Search &amp; Filtering](/categories/search)
4. /
5. daniellucia/hooks

ActiveLibrary[Search &amp; Filtering](/categories/search)

daniellucia/hooks
=================

PHP Hooks System

v0.2.4(8y ago)03231MITPHP

Since Apr 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/DanielLucia/hooks)[ Packagist](https://packagist.org/packages/daniellucia/hooks)[ RSS](/packages/daniellucia-hooks/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (6)Used By (0)

hooks
=====

[](#hooks)

PHP Hooks System

Installing
----------

[](#installing)

Install using Composer.

```
$ composer require daniellucia/hooks
```

Usage Action
------------

[](#usage-action)

```
$hooks = new daniellucia\Hooks\Manager;

$hooks->action->add("header", function() {
	echo "Hello!";
});

$hooks->action->run("header");
```

Usage Filter
------------

[](#usage-filter)

```
$hooks = new daniellucia\Hooks\Manager;

$hooks->filter->add("header", function($value) {
	return $value . " World!";
});

echo $hooks->filter->apply("header", "Hello");
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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

Total

5

Last Release

2974d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13dbc440273f28d4f4d00478ba7b3e9fc411bef39f552f601abd7dbfb86b362b?d=identicon)[daniel.lucia](/maintainers/daniel.lucia)

---

Top Contributors

[![daniellucia](https://avatars.githubusercontent.com/u/1748296?v=4)](https://github.com/daniellucia "daniellucia (5 commits)")[![cjean-fr](https://avatars.githubusercontent.com/u/87385?v=4)](https://github.com/cjean-fr "cjean-fr (1 commits)")

---

Tags

filterhooksaction

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/daniellucia-hooks/health.svg)

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

###  Alternatives

[clue/stream-filter

A simple and modern approach to stream filtering in PHP

1.7k261.7M7](/packages/clue-stream-filter)[tormjens/eventy

The WordPress filter/action system in Laravel

438912.9k16](/packages/tormjens-eventy)[laminas/laminas-filter

Programmatically filter and normalize data and files

9428.0M150](/packages/laminas-laminas-filter)[millat/laravel-hooks

The WordPress filter, action system in Laravel

5715.1k](/packages/millat-laravel-hooks)

PHPackages © 2026

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