severalnines / rpcphp
Rpc library for Severalnines ClusterControl
v0.0.9
2016-05-20 10:29 UTC
Requires
- php: >=5.3.0
- curl/curl: ^1.3
Requires (Dev)
- evert/phpdoc-md: ~0.2.0
- phpdocumentor/phpdocumentor: ^2.8
- phpunit/phpunit: ^4.8
This package is not auto-updated.
Last update: 2025-01-16 01:54:05 UTC
README
- Settings Api
- Jobs Api
- Log Api
- Operational reports Api
- Operational reports schedules Api
- Processes Api
- Settings Api
- Stats Api
Usage example
Installation
$ composer require severalnines/rpcphp
test.php
<?php require_once(__DIR__ . '/vendor/autoload.php'); $rpc = \Severalnines\Rpc::init( array( 0 => 'wZPkJaOccOEYCVxr', 1 => 'cRiuu4YfhET4SLuo' ), '127.0.0.1' ); $hostsResponse = $rpc ->cluster(1) ->stat() ->getHosts(); if (!$hostsResponse->ok()) { die($hostsResponse->getError()); } var_dump($hostsResponse->getData());