A PHP client for Flynn's Discoverd.

0.1.0 2014-11-20 14:06 UTC

This package is auto-updated.

Last update: 2024-05-29 03:04:54 UTC


This PHP library is a PHP client for Flynn Discoverd API which is based on a custom RPC server that supports JSON.


Require the package sroze/discoverd-client in your composer.json file and update dependencies:

    "require": {
        "sroze/discoverd-client": "~0.1.0"


Note: The client is able to automatically detect the Discoverd address based on the environment if your application is running on Flynn.


use SRIO\Discoverd\Client;

// Create the Discoverd client
$client = new Client();

// Get informations about the service named "pg"
$serviceName = 'pg';
$result = $client->subscribe($serviceName);

// You can also call any method on RPC server
$client->call('Agent.Register', array(
    'Name' => 'anyservice',
    'Addr' => ''