Download the PHP package indigophp/supervisor without Composer
On this page you can find all versions of the php package indigophp/supervisor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download indigophp/supervisor
More information about indigophp/supervisor
Files in indigophp/supervisor
Package supervisor
Short Description PHP library for Supervisor
License MIT
Homepage https://indigophp.com
Informations about the package supervisor
DEPRECATION NOTICE
This package has been moved under SupervisorPHP.
https://github.com/supervisorphp/supervisor
For details see http://supervisorphp.com
Indigo Supervisor
PHP library for managing supervisord through XML-RPC API.
Install
Via Composer
Usage
Currently available connectors:
- fXmlRpc
- Zend XML-RPC
Note: fXmlRpc can be used with several HTTP Clients. See the list on it's website. This is the reason why Client specific connectors has been removed.
Authentication
As of version 3.0.0 setCredentials
is no longer part of the Connector
interface (meaning responsibility has been fully removed).You have to provide authentication data to the HTTP Client of your choice. (For example Guzzle supports it out-of-the-box) Also, Bridges implemented by fXmlRpc supports to set custom headers.
Exception handling
For each possible fault response there is an exception. These exceptions extend a common exception, so you are able to catch a specific fault or all. When an unknown fault is returned from the server, an instance if the common exception is thrown. The list of fault responses and the appropriate exception can be found in the class.
For developers: Fault exceptions are automatically generated, there is no need to manually modify them.
Configuration and Event listening
Configuration and Event components have been moved into their own repository. See #24 for explanation.
Further info
You can find the XML-RPC documentation here: http://supervisord.org/api.html
Notice
If you use PHP XML-RPC extension to parse responses (which is marked as EXPERIMENTAL). This can cause issues when you are trying to read/tail log of a PROCESS. Make sure you clean your log messages. The only information I found about this is a comment.
You will also have to make sure that you always call the functions with correct parameters. Zend
connector will trigger an error when incorrect parameters are passed. See this issue for details. (Probably this won't change in near future based on my inspections of the code.) Other connectors will throw a Fault
exception.
Bundles
Here is a list of framework specific bundle packages:
- HumusSupervisorModule (Zend Framework 2)
- Fuel Supervisor (FuelPHP 1.x)
Testing
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.