PHPackages                             netherphp/ki - 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. netherphp/ki

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

netherphp/ki
============

An event handler

v1.0.1(8y ago)02.7k2BSD-2-ClausePHPPHP &gt;=5.4.0

Since May 18Pushed 1y agoCompare

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

READMEChangelogDependenciesVersions (4)Used By (2)

Nether Ki
=========

[](#nether-ki)

[![nether.io](https://camo.githubusercontent.com/773470d2c7deefc5824625d19bf8c2a8e6afe22cf3526dda6c09c3c8161740c0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6e65746865722d6b692d4336363144322e737667)](http://nether.io/) [![Code Climate](https://camo.githubusercontent.com/977cbd9238838788a7bdfed19dba91ece1e7e6e879778e1c4c5d3a7b22f72693/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6e65746865727068702f6b692f6261646765732f6770612e737667)](https://codeclimate.com/github/netherphp/ki) [![Build Status](https://camo.githubusercontent.com/1317753163f5242df6dc219a27ee2b41517ff93797948d4a427015a0bba44435/68747470733a2f2f7472617669732d63692e6f72672f6e65746865727068702f6b692e737667)](https://travis-ci.org/netherphp/ki) [![Packagist](https://camo.githubusercontent.com/190c7e151b367ce03ef75666eb3b68f916ca658a38834bdfc57a737eee035c3e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e65746865727068702f6b692e737667)](https://packagist.org/packages/netherphp/ki) [![Packagist](https://camo.githubusercontent.com/700c3ff6153dff6d64531709ef94b997a5914262aa3f2069ee46b0d08c2593b5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e65746865727068702f6b692e737667)](https://packagist.org/packages/netherphp/ki)

#### Basic Use

[](#basic-use)

An event system handler. Queue callbacks to be executed when needed by other parts of the application. Can be used to trigger actions or filter things. Events are one time use by default, but you can also have them persist for multiple uses. This is not a true async thing like React - these filters will block, so they are safe for inline filtering.

```
Nether\Ki::Queue(string EventName, callable Callback, bool Persist default false);

Nether\Ki::Queue('my-first-event',function(){
	echo 'LOL EVENT LULZ';
	return;
});

```

That will queue an event to happen the first time we call it.

```
Nether\Ki::Flow(string EventName, array Args default null);

Nether\Ki::Flow('my-first-event');

```

After the first Flow, that event will be removed from the queue and additional flows will not proc it until you requeue it.

#### Rigging a Filter Event

[](#rigging-a-filter-event)

To create a filter, you'll probably want to make a persistant event, with one of the few valid uses of pass-by-reference in PHP.

```
Nether\Ki::Queue('app-hates-at-signs',function(&$input){
	if(is_string($input)) $input = str_replace('@','',$input);
},true);

```

Then when you want to filter...

```
Nether\Ki::Flow('app-hates-at-signs',[&$text]);

```

And that filter will continue to work for the duration of the app.

Install
-------

[](#install)

Use Composer.

```
"require": { "netherphp/ki":"~1.0.0" }

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~1054 days

Total

2

Last Release

2964d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b64ee49e86efa67a7de4afdc42c2686460d1e46ac7eac7e6ccfa6407ec7d979a?d=identicon)[bobmagicii](/maintainers/bobmagicii)

---

Top Contributors

[![bobmagicii](https://avatars.githubusercontent.com/u/881944?v=4)](https://github.com/bobmagicii "bobmagicii (7 commits)")

---

Tags

phpevent

### Embed Badge

![Health badge](/badges/netherphp-ki/health.svg)

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

PHPackages © 2026

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