Download the PHP package supervisorphp/supervisor without Composer
On this page you can find all versions of the php package supervisorphp/supervisor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download supervisorphp/supervisor
More information about supervisorphp/supervisor
Files in supervisorphp/supervisor
Package supervisor
Short Description PHP library for managing Supervisor through XML-RPC API
License MIT
Homepage http://supervisorphp.com
Informations about the package supervisor
Supervisor
PHP library for managing Supervisor through XML-RPC API.
Install
Via Composer
Usage
This library depends on the fast and powerful fXmlRpc library, which supports a number of adapters to use your preferred HTTP client to make connections.
In the example below, we will use the popular Guzzle HTTP client library.
This example requires some additional libraries to function. To include the necessary extra components, you can run:
This example shows how to pass authentication credentials to Guzzle, initiate the fXmlRpc client, and pass that to SupervisorPHP.
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.
Configuration and Event listening
Configuration and Event components have been moved into their own repository.
Further info
You can find the Supervisor 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.
Contributing
Please see CONTRIBUTING for details.
Testing
Functional tests (behat):
Docker Image
This repository ships with a Docker Compose configuration and a Dockerfile for easy testing. Tests can be run via:
Deprecated Libraries
While this tries to be a complete Supervisor client, this isn't the first one. However some authors decided to deprecate their packages in favor of this:
Credits
- László Monda (author of Supervisord PHP Client)
- Márk Sági-Kazár
- All Contributors
License
The MIT License (MIT). Please see License File for more information.