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

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

friendsofhyperf/config-consul
=============================

The consul config component for Hyperf.

v3.1.75(5mo ago)03191MITPHP

Since May 21Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/friendsofhyperf/config-consul)[ Packagist](https://packagist.org/packages/friendsofhyperf/config-consul)[ Fund](https://hdj.me/sponsors/)[ GitHub Sponsors](https://github.com/huangdijia)[ RSS](/packages/friendsofhyperf-config-consul/feed)WikiDiscussions main Synced 5d ago

READMEChangelog (10)Dependencies (4)Versions (100)Used By (0)

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

[](#config-consul)

[![Latest Stable Version](https://camo.githubusercontent.com/9102bb12e47b436f0fff176ba58f02e8135f4be07907dbce725137dc1dbad4b7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f667269656e64736f666879706572662f636f6e6669672d636f6e73756c)](https://packagist.org/packages/friendsofhyperf/config-consul)[![Total Downloads](https://camo.githubusercontent.com/e8900c6a53105eb82716773ac3d31951e3f786c2f830343badc7c5584790a8c3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f667269656e64736f666879706572662f636f6e6669672d636f6e73756c)](https://packagist.org/packages/friendsofhyperf/config-consul)[![License](https://camo.githubusercontent.com/d968365dc7cfa2a0c65bf60a44e3299ffb3331c6aca3636b13a88bceb21d7404/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f667269656e64736f666879706572662f636f6e6669672d636f6e73756c)](https://github.com/friendsofhyperf/config-consul)

The consul config component for Hyperf.

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

[](#installation)

```
composer require friendsofhyperf/config-consul
```

Configure
---------

[](#configure)

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

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

Contact
-------

[](#contact)

- [Twitter](https://twitter.com/huangdijia)
- [Gmail](mailto:huangdijia@gmail.com)

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance71

Regular maintenance activity

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 98.1% 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

Every ~13 days

Recently: every ~3 days

Total

99

Last Release

168d ago

Major Versions

v2.0.1 → v3.0.0-beta22022-05-23

v2.0.4 → v3.0.0-beta92022-05-24

v2.0.13 → v3.0.0-beta322022-06-24

v2.0.24 → v3.0.02022-12-29

v2.0.28 → v3.0.142023-02-10

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8337659?v=4)[Deeka Wong](/maintainers/huangdijia)[@huangdijia](https://github.com/huangdijia)

---

Top Contributors

[![huangdijia](https://avatars.githubusercontent.com/u/8337659?v=4)](https://github.com/huangdijia "huangdijia (53 commits)")[![liuchenrang](https://avatars.githubusercontent.com/u/2784214?v=4)](https://github.com/liuchenrang "liuchenrang (1 commits)")

---

Tags

hyperfv3.1

### Embed Badge

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

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

###  Alternatives

[hyperf/watcher

Hot reload watcher for Hyperf

17846.7k27](/packages/hyperf-watcher)[hyperf/di

A DI for Hyperf.

182.8M594](/packages/hyperf-di)[hyperf/crontab

A crontab component for Hyperf.

131.6M62](/packages/hyperf-crontab)

PHPackages © 2026

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