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

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

mtdowling/supervisor-event
==========================

Wires callback functions to Supervisor events

v1.0.0(13y ago)123174.8k↓32.4%18[2 issues](https://github.com/mtdowling/php-supervisor-event/issues)1MITPHPPHP &gt;=5.3.2

Since Jul 22Pushed 6y ago9 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (1)

PHP Supervisor Event Framework
==============================

[](#php-supervisor-event-framework)

Receives event notifications from Supervisor and sends the parsed notification to a callback function.

Requirements
============

[](#requirements)

- PHP 5.3
- Supervisord

Installation
============

[](#installation)

The recommended installation method is through [Composer](http://getcomposer.org).

1. Add `mtdowling/supervisor-event` as a dependency in your project's `composer.json` file:

    ```
     {
         "require": {
             "mtdowling/supervisor-event": "*"
         }
     }

    ```
2. Download and install Composer:

    ```
     curl -s http://getcomposer.org/installer | php

    ```
3. Install your dependencies:

    ```
     php composer.phar install

    ```
4. Require Composer's autoloader

    Composer also prepares an autoload file that's capable of autoloading all of the classes in any of the libraries that it downloads. To use it, just add the following line to your code's bootstrap process:

    ```
     require 'vendor/autoload.php';

    ```

You can find out more on how to install Composer, configure autoloading, and other best-practices for defining dependencies at [getcomposer.org](http://getcomposer.org).

Example event script
--------------------

[](#example-event-script)

```
