PHPackages                             indigophp/supervisor-event - 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. indigophp/supervisor-event

Abandoned → [supervisorphp/event](/?search=supervisorphp%2Fevent)Library[Utility &amp; Helpers](/categories/utility)

indigophp/supervisor-event
==========================

Listen to Supervisor events in PHP

v0.1.0(11y ago)015MITPHP &gt;=5.4.0

Since Jan 4Compare

[ Source](https://github.com/indigophp-archive/supervisor-event)[ Packagist](https://packagist.org/packages/indigophp/supervisor-event)[ Docs](https://indigophp.com)[ RSS](/packages/indigophp-supervisor-event/feed)WikiDiscussions Synced yesterday

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

> **DEPRECATION NOTICE**

> This package has been moved under SupervisorPHP.

>

> For details see

Indigo Supervisor Event
=======================

[](#indigo-supervisor-event)

[![Latest Version](https://camo.githubusercontent.com/78df49fed513020c4890897ffb427469fd6f68b7a6878269f6488c338f36fc35/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f696e6469676f7068702f73757065727669736f722d6576656e742e7376673f7374796c653d666c61742d737175617265)](https://github.com/indigophp/supervisor-event/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/1668df935b24121775e5f2185d42bdf06cd7620d83422cc3dcad5f3d1245fb7b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f696e6469676f7068702f73757065727669736f722d6576656e742e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/indigophp/supervisor-event)[![Code Coverage](https://camo.githubusercontent.com/37b620118f3abdef21aa28290b876b849320d48bb996ee4459176a650af68abd/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f696e6469676f7068702f73757065727669736f722d6576656e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/indigophp/supervisor-event)[![Quality Score](https://camo.githubusercontent.com/3e5835c58f2cbaccfc2ce6069adee9c6d24a3de69459475f3bcb3f052b1d1433/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f696e6469676f7068702f73757065727669736f722d6576656e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/indigophp/supervisor-event)[![HHVM Status](https://camo.githubusercontent.com/03a20897a406750356d8991c05d976861db685f728e1dcdc4ba0d33af25db950/68747470733a2f2f696d672e736869656c64732e696f2f6868766d2f696e6469676f7068702f73757065727669736f722d6576656e742e7376673f7374796c653d666c61742d737175617265)](http://hhvm.h4cc.de/package/indigophp/supervisor-event)[![Total Downloads](https://camo.githubusercontent.com/a03156b861cb9368416e2d8fd4b61b0a1fa81e3ad697412eb075d016f946e47b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e6469676f7068702f73757065727669736f722d6576656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/indigophp/supervisor-event)[![Dependency Status](https://camo.githubusercontent.com/a766d54d8c0635527a348b850d2056cbb4493198c76184d67b9d2d9a5bac0a7c/68747470733a2f2f696d672e736869656c64732e696f2f76657273696f6e6579652f642f7068702f696e6469676f7068703a73757065727669736f722d6576656e742e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/php/indigophp:supervisor-event)

**Listen to Supervisor events in PHP.**

Install
-------

[](#install)

Via Composer

```
$ composer require indigophp/supervisor-event
```

Usage
-----

[](#usage)

Supervisor has this pretty good feature: notify you(r listener) about it's events.

The main entry point is the `Listener`. `Listeners`s wait for a `Handler` in the main listening logic. `Handler`s get a `Notification` when an event occurs.

```
use Indigo\Supervisor\Event\Listener\Standard;
use Indigo\Supervisor\Event\Handler\Callback;
use Indigo\Supervisor\Event\Notification;

$handler = new Callback(function(Notification $notification) {
	echo $notification->getHeader('eventname');
});

$listener = new Standard;

$listener->listen($handler);
```

Currently available listeners:

- Standard: Listents to standard input stream, writes to standard output
- Guzzle: Uses `StreamInterface` to provide an easy interface for reading/writting

Additionally you can use two exceptions to control the listeners itself:

- `Indigo\Supervisor\Exception\StopListener`: indicates that the `Listener` should stop listening for further events.
- `Indigo\Supervisor\Exception\EventHandlingFailed`: indicates that handling the event failed, `Listener` should return with a FAIL response.

Any other unhandled exceptions/errors will cause the listener to stop.

Check the Supervisor docs for more about [Events](http://supervisord.org/events.htm).

Testing
-------

[](#testing)

```
$ phpspec run
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Márk Sági-Kazár](https://github.com/sagikazarmark)
- [All Contributors](https://github.com/indigophp/supervisor-event/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

4199d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e4e105cea62b616d4cb376b08a849b6a428f646998537de150d16a8eb537b90?d=identicon)[mark.sagikazar](/maintainers/mark.sagikazar)

![](https://www.gravatar.com/avatar/1585b5a08e138e348f5b646231d0f16cb2eae06501fb9462bbc97a794d4de84a?d=identicon)[TamasBarta](/maintainers/TamasBarta)

---

Top Contributors

[![sagikazarmark](https://avatars.githubusercontent.com/u/1226384?v=4)](https://github.com/sagikazarmark "sagikazarmark (23 commits)")

---

Tags

eventlistenersupervisor

### Embed Badge

![Health badge](/badges/indigophp-supervisor-event/health.svg)

```
[![Health](https://phpackages.com/badges/indigophp-supervisor-event/health.svg)](https://phpackages.com/packages/indigophp-supervisor-event)
```

###  Alternatives

[league/event

Event package

1.6k153.4M208](/packages/league-event)[mtdowling/supervisor-event

Wires callback functions to Supervisor events

124178.6k1](/packages/mtdowling-supervisor-event)[supervisorphp/event

Listen to Supervisor events in PHP

1445.3k](/packages/supervisorphp-event)[slince/event-dispatcher

Event dispatcher package

106.1k2](/packages/slince-event-dispatcher)

PHPackages © 2026

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