Download the PHP package indigophp/supervisor-event without Composer
On this page you can find all versions of the php package indigophp/supervisor-event. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download indigophp/supervisor-event
More information about indigophp/supervisor-event
Files in indigophp/supervisor-event
Package supervisor-event
Short Description Listen to Supervisor events in PHP
License MIT
Homepage https://indigophp.com
Informations about the package supervisor-event
DEPRECATION NOTICE
This package has been moved under SupervisorPHP.
https://github.com/supervisorphp/event
For details see http://supervisorphp.com
Indigo Supervisor Event
Listen to Supervisor events in PHP.
Install
Via Composer
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.
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 theListener
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.
Testing
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.