You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `^`.
13
+
14
+
```
15
+
composer require api-clients/supervisord
16
+
```
17
+
18
+
# Usage
19
+
20
+
The client needs two things, an IP + port to connect to, and the ReactPHP event loop. Once you created the client you can call the `state` method to get supervisord's current state.
21
+
22
+
```php
23
+
use ApiClients\Client\Supervisord\AsyncClient;
24
+
use ApiClients\Client\Supervisord\Resource\StateInterface;
25
+
use React\EventLoop\Factory;
26
+
use function ApiClients\Foundation\resource_pretty_print;
27
+
28
+
$loop = Factory::create();
29
+
$client = AsyncClient::create('127.0.0.1:9005', $loop); // My supvervisor runs at 127.0.0.1:9005 changes for your HTTP IP + port
0 commit comments