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

ActiveLibrary

kel/hooks
=========

A simple php framework for adding runtime hooks to a system.

v1.0.1(8y ago)013MITPHPPHP 5.6|^7.0

Since Feb 2Pushed 8y agoCompare

[ Source](https://github.com/Kel-Dev-Team/Hooks)[ Packagist](https://packagist.org/packages/kel/hooks)[ RSS](/packages/kel-hooks/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Hooks
=====

[](#hooks)

A simple php framework for adding runtime hooks to a system.

**installation**

```
$ composer require kel/hooks
```

**example**

```
use Kel\Load;
use Kel\Hooks;

//create a new Hooks instance
//passing an array of config options is optional
//__NB: Multiple hooks can be added to the same hook point__
$hook = new  Hooks(Load::config(__DIR__.'/config.php'));

//add a hook init.php to the hook point init
//the hook point is created if it does not exist
$hook->add_hook('init', "init.php");

//add a hook init.php to the hook point final
$hook->add_hook('final', "init.php");

//run the hook init
$hook->run_hook('init');

//run the hook final
$hook->run_hook('final');
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.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

Unknown

Total

1

Last Release

3023d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/11616135fbb4de379633e13f68c381e431e83cd541067980f9cf20c5f4469d67?d=identicon)[kel](/maintainers/kel)

---

Top Contributors

[![RussellJapheth](https://avatars.githubusercontent.com/u/24194732?v=4)](https://github.com/RussellJapheth "RussellJapheth (12 commits)")[![kingchi](https://avatars.githubusercontent.com/u/26721049?v=4)](https://github.com/kingchi "kingchi (2 commits)")

---

Tags

hooksphp

### Embed Badge

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

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

PHPackages © 2026

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