PHPackages                             czan/config-consul - 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. czan/config-consul

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

czan/config-consul
==================

Config extension for Hyperf.

1.1(4y ago)03MITPHPPHP &gt;=7.4

Since Mar 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/MonkWang/config-consul)[ Packagist](https://packagist.org/packages/czan/config-consul)[ RSS](/packages/czan-config-consul/feed)WikiDiscussions main Synced 1mo ago

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

Hyperf config-consul
====================

[](#hyperf-config-consul)

[![Latest Test](https://github.com/friendsofhyperf/config-consul/workflows/tests/badge.svg)](https://github.com/friendsofhyperf/config-consul/actions)[![Latest Stable Version](https://camo.githubusercontent.com/7b5eb8e6adaeb7825b76d2a8aba1227df8e29327c783ceff3e0c298143cd81bf/68747470733a2f2f706f7365722e707567782e6f72672f667269656e64736f666879706572662f636f6e6669672d636f6e73756c2f76657273696f6e2e706e67)](https://packagist.org/packages/friendsofhyperf/config-consul)[![Total Downloads](https://camo.githubusercontent.com/f884bf7ecca37e74b30ecc9f36aa0072c1b78f12271076869a4003a9a81ab158/68747470733a2f2f706f7365722e707567782e6f72672f667269656e64736f666879706572662f636f6e6669672d636f6e73756c2f642f746f74616c2e706e67)](https://packagist.org/packages/friendsofhyperf/config-consul)[![GitHub license](https://camo.githubusercontent.com/186be1eb99d3a342b88b48d5dc65dfca78f016eec5f7eae7bc0e85c0e55c5dcd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f667269656e64736f666879706572662f636f6e6669672d636f6e73756c)](https://github.com/friendsofhyperf/config-consul)

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

[](#installation)

```
composer require czan/config-consul

```

Configure
---------

[](#configure)

```
// config/autoload/config_center.php

return [
    'drivers' => [
        'consul' => [
            'driver' => Czan\ConfigConsul\ConsulDriver::class,
            'packer' => Hyperf\Utils\Packer\JsonPacker::class,
            'uri' => env('CONSUL_URI'),
            'namespaces' => [
                '/application',
            ],
            'mapping' => [
                // consul key => config key
                '/application/test' => 'test',
            ],
            'interval' => 5,
        ],
    ],
];
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

1515d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2625d3bba9629ffe4849a284593f24bd8f7ced370e2bd0dec145f349eda1da1e?d=identicon)[MonkWang1](/maintainers/MonkWang1)

---

Top Contributors

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

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/czan-config-consul/health.svg)

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

###  Alternatives

[hyperf/swoole-tracker

A swoole tracker library for Hyperf.

1720.3k](/packages/hyperf-swoole-tracker)

PHPackages © 2026

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