React-PCNTL

Install

This library depends on the PCNTL extension.
Note: version 2 of this library requires PHP >= 5.4. If you are using PHP 5.3, use the 1.0.* version:

{
"require": {
"mkraemer/react-pcntl": "1.0.*"
}
}

Usage

This library provides the PCNTL class which taskes an event loop and optionally the timer interval in which the PCNTL signals should be read as constructor arguments.
After initializing the class, you can use the on() method to register event listeners to PCNTL signals.