PHPackages                             skopek/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. skopek/hooks

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

skopek/hooks
============

PHP Hooks System

v0.2.1(10y ago)4332[2 PRs](https://github.com/skopek/hooks/pulls)MITPHP

Since Apr 8Pushed 5y ago1 watchersCompare

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

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

hooks
=====

[](#hooks)

PHP Hooks System

Installing
----------

[](#installing)

Install using Composer.

```
$ composer require skopek/hooks
```

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

[](#usage-action)

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

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

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

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

[](#usage-filter)

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

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

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

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~28 days

Total

3

Last Release

3678d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12124501?v=4)[Mateusz Skopowski](/maintainers/skopek)[@skopek](https://github.com/skopek)

---

Top Contributors

[![skopek](https://avatars.githubusercontent.com/u/12124501?v=4)](https://github.com/skopek "skopek (2 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/skopek-hooks/health.svg)

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

###  Alternatives

[clue/stream-filter

A simple and modern approach to stream filtering in PHP

1.7k271.5M8](/packages/clue-stream-filter)[tormjens/eventy

The WordPress filter/action system in Laravel

438937.3k23](/packages/tormjens-eventy)[laminas/laminas-filter

Programmatically filter and normalize data and files

9530.3M173](/packages/laminas-laminas-filter)[millat/laravel-hooks

The WordPress filter, action system in Laravel

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

PHPackages © 2026

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