PHPackages                             jcalderonzumba/consul-discovery - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. jcalderonzumba/consul-discovery

ActiveConsul-sdk[DevOps &amp; Deployment](/categories/devops)

jcalderonzumba/consul-discovery
===============================

Consul service discovery made easy

v1.0.0(10y ago)42.2k2MITPHPPHP &gt;=5.4

Since Apr 28Pushed 10y ago2 watchersCompare

[ Source](https://github.com/jcalderonzumba/consul-discovery)[ Packagist](https://packagist.org/packages/jcalderonzumba/consul-discovery)[ Docs](https://github.com/jcalderonzumba/consul-discovery)[ RSS](/packages/jcalderonzumba-consul-discovery/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

CONSUL SDK
==========

[](#consul-sdk)

Lightweight **CONSUL** service discovery for PHP

Requirements
------------

[](#requirements)

You need to have [CONSUL](https://www.consul.io) agent up and running.

Installation
------------

[](#installation)

This library can be installed with composer:

```
composer require jcalderonzumba/consul-discovery

```

Usage
-----

[](#usage)

The usage depends on the feature of CONSUL you want to use, for the moment we support:

- **Service discovery**

### Service discovery

[](#service-discovery)

Discovery of a service was never easier just use:

```
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.

TODO
----

[](#todo)

- **TEST, TEST, TEST!!!**
- Add more features to the SDK.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3715d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2198097?v=4)[Juan Francisco Calderón Zumba](/maintainers/jcalderonzumba)[@jcalderonzumba](https://github.com/jcalderonzumba)

---

Top Contributors

[![jcalderonzumba](https://avatars.githubusercontent.com/u/2198097?v=4)](https://github.com/jcalderonzumba "jcalderonzumba (3 commits)")

---

Tags

devopsservice discoveryconsul

### Embed Badge

![Health badge](/badges/jcalderonzumba-consul-discovery/health.svg)

```
[![Health](https://phpackages.com/badges/jcalderonzumba-consul-discovery/health.svg)](https://phpackages.com/packages/jcalderonzumba-consul-discovery)
```

###  Alternatives

[ondram/ci-detector

Detect continuous integration environment and provide unified access to properties of current build

22253.3M44](/packages/ondram-ci-detector)[downtoworld/laravel-devops

Laravel Cloudflare-Tunnels Ready Production Docker-Compose

161.1k](/packages/downtoworld-laravel-devops)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
