PHPackages                             rstgroup/zf-external-config-consul-provider - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rstgroup/zf-external-config-consul-provider

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rstgroup/zf-external-config-consul-provider
===========================================

Consul provider for rstgroup/zf-external-config-module

1.0(8y ago)010MITPHPPHP &gt;= 5.6

Since Jul 26Pushed 8y ago11 watchersCompare

[ Source](https://github.com/rstgroup/zf-external-config-consul-provider)[ Packagist](https://packagist.org/packages/rstgroup/zf-external-config-consul-provider)[ RSS](/packages/rstgroup-zf-external-config-consul-provider/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

ZF External Config - Consul Provider
====================================

[](#zf-external-config---consul-provider)

This library contains provider that can fetch configuration from Consul Key/Value Storage.

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

[](#installation)

Require module with Composer:

```
composer require rstgroup/zf-external-config-consul-provider
```

Then don't forget to enable provider and define factory in the `zf-config-module`'s section of application's configuration:

```
return [
    'rst_group' => [
        'external_config' => [
            'providers' => [
                \RstGroup\ZfExternalConfigConsulProvider\ConsulConfigProvider::class,
            ],
            'service_manager' => [
                'factories' => [
                    \RstGroup\ZfExternalConfigConsulProvider\ConsulConfigProvider::class =>
                        \RstGroup\ZfExternalConfigConsulProvider\ConsulConfigProviderFactory::class
                ]
            ]
        ],
    ]
];
```

Configuration
-------------

[](#configuration)

Example configuration of provider might look just like this:

```
return [
    'rst_group' => [
        'external_config' => [
            'consul' => [
                'prefix' => 'my-app/',
                'http_client' => [
                    'base_uri' => 'http://consul.local:8500',
                ]
            ],
        ],
    ],
];
```

The provider's configuration should be placed under `rsr_group.external_config.consul` key. There are two sections:

1. `prefix` key, which determines the base path in Consul's KV Storage. How it exactly works you can read in [`rstgroup/php-consul-kv-array-getter`'s documentation](https://github.com/rstgroup/php-consul-kv-array-getter).
     If you don't provide `prefix`, provider will return all keys returned by Consul KV API.
2. `http_client` key, which contains options passed to `GuzzleHttp\Client` instance. The key that should interest you is `base_uri` which determines the base location of Consul's API. By default it's value is `http://127.0.0.1:8500`.
    More information about possible options are described in [Guzzle Docs](http://docs.guzzlephp.org/en/stable/overview.html)and in [Guzzle's repository](https://github.com/guzzle/guzzle/tree/6.3.0).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

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

3213d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ffa5d2fe34b04844f854a4fa7ce073c69a500fe6352d69461756abf1b23599d?d=identicon)[rstgroup](/maintainers/rstgroup)

---

Top Contributors

[![snapshotpl](https://avatars.githubusercontent.com/u/312655?v=4)](https://github.com/snapshotpl "snapshotpl (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rstgroup-zf-external-config-consul-provider/health.svg)

```
[![Health](https://phpackages.com/badges/rstgroup-zf-external-config-consul-provider/health.svg)](https://phpackages.com/packages/rstgroup-zf-external-config-consul-provider)
```

###  Alternatives

[geniusts/prayer-times

A PHP package to calculate prayer times

1616.7k](/packages/geniusts-prayer-times)

PHPackages © 2026

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