zhaqq / xml-rpc
Supervisor XML RPC Client in PHP
v0.0.1
2019-09-26 08:53 UTC
Requires
- php: >=7.1
- guzzlehttp/guzzle: ^6.3
- php-amqplib/php-amqplib: ^2.10
This package is auto-updated.
Last update: 2025-03-26 22:00:21 UTC
README
- PHP >= 7.1
install
composer require zhaqq/xml-rpc
Example
use Zhaqq\XmlRpc\Client; require __DIR__ . '/vendor/autoload.php'; $config = [ 'dns' => '192.168.10.10:9001', 'username' => 'www', 'password' => '123' ]; $processName = 'swoole:swoole_0'; $processName = 'swoole1'; try { $supervisorMonitor = new Client($config['dns'], $config['username'], $config['password']); $data1 = $supervisorMonitor->getProcessInfo($processName); var_dump($data1); } catch (\Exception $exception) { var_dump($exception->getMessage()); }