Rpc library for Severalnines ClusterControl

Installs: 28

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 8

pkg:composer/severalnines/rpcphp

v0.0.9 2016-05-20 10:29 UTC

This package is not auto-updated.

Last update: 2025-12-18 06:10:02 UTC


README

Build Status Dependency Status codecov.io

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());