2017 © Pedro PelĂĄez
 

consul-sdk consul-discovery

Consul service discovery made easy

image

jcalderonzumba/consul-discovery

Consul service discovery made easy

  • Thursday, April 28, 2016
  • by jcalderonzumba
  • Repository
  • 1 Watchers
  • 3 Stars
  • 427 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 16 % Grown

The README.md

CONSUL SDK

Lightweight CONSUL service discovery for PHP, (*1)

Requirements

You need to have CONSUL agent up and running., (*2)

Installation

This library can be installed with composer:, (*3)

composer require jcalderonzumba/consul-discovery

Usage

The usage depends on the feature of CONSUL you want to use, for the moment we support: * Service discovery, (*4)

Service discovery

Discovery of a service was never easier just use:, (*5)

use Zumba\Consul\Features\Discovery;

$discovery = new Discovery([
  "consul_url" => "YOUR_CONSUL_HTTP_API"
]);

$service = $discovery->getService("pigeon");
echo $service->getID();
echo $service->getAddress();
echo $service->getPort();

By default we search ONLY for healthy service nearest to the agent. If you want this behavior to change open a issue and let's talk about it., (*6)

TODO

  • TEST, TEST, TEST!!!
  • Add more features to the SDK.

The Versions

28/04 2016

dev-master

9999999-dev https://github.com/jcalderonzumba/consul-discovery

Consul service discovery made easy

  Sources   Download

MIT

The Requires

  • php >=5.4

 

devops consul service discovery

28/04 2016

v1.0.0

1.0.0.0 https://github.com/jcalderonzumba/consul-discovery

Consul service discovery made easy

  Sources   Download

MIT

The Requires

  • php >=5.4

 

devops consul service discovery