2017 © Pedro Peláez
 

library client

Gloubster PHP client

image

gloubster/client

Gloubster PHP client

  • Friday, January 11, 2013
  • by romain
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Gloubster PHP Client

Build Status, (*1)

A set of synchronous / asynchronous clients to use to query a Gloubster Server., (*2)

Use in your project

Use composer to add it in your project :, (*3)

{
    "require": {
        "gloubster/client": "0.1.*"
    }
}

Synchronous Clients

Synchronous clients are commonly used like in the following example, specific clients use are described below., (*4)

use Gloubster\Exception\ClientRequestException;
use Gloubster\Exception\ClientNotAcknowledgedRequestException;

try {
    $acknowledgement = $client->send($job);
} catch (ClientRequestException $e) {
    echo "An error occured while querying Gloubster Server, the response was not understood\n";
    echo sprintf("Server answered : %s\n", $e->getResponse());
} catch (ClientNotAcknowledgedRequestException $e) {
    echo sprintf("Gloubster Server did not acknowledge the query for "
        . "the following reason : %s \n", $e->getAcknowledgement()->getReason());
}

ZeroMQ Client

ZeroMQ client is very easy to use ; you just to have to provide $transport, $host and $port., (*5)

use Gloubster\Client\Sync\ZMQClient;

// Will connect to ZMQ socket tcp://localhost:12300
$client = ZMQClient::create('tcp', 'localhost', '12300');

Asynchronous Clients

// todo, (*6)

License

Gloubster PHP Client is released under the MIT license., (*7)

The Versions

11/01 2013

dev-master

9999999-dev

Gloubster PHP client

  Sources   Download

The Requires

 

The Development Requires