PHPackages                             imiphp/imi-config-center - 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. imiphp/imi-config-center

ActiveLibrary

imiphp/imi-config-center
========================

imi 框架配置中心组件。imi configuration center.

2.1.x-dev(3y ago)32923MulanPSL-2.0PHP

Since Aug 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/imiphp/imi-config-center)[ Packagist](https://packagist.org/packages/imiphp/imi-config-center)[ RSS](/packages/imiphp-imi-config-center/feed)WikiDiscussions 2.1 Synced 4w ago

READMEChangelog (2)Dependencies (8)Versions (3)Used By (3)

imi-config-center
=================

[](#imi-config-center)

[![Latest Version](https://camo.githubusercontent.com/e396c28cad0ff4bc63bd52d4d6ee0e698e936ec36b3f1e32eccbee234d39299f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696d697068702f696d692d636f6e6669672d63656e7465722e737667)](https://packagist.org/packages/imiphp/imi-config-center)[![Php Version](https://camo.githubusercontent.com/4a5c2ab20974058a8bab53ecb30ac4c2e6bb961df6229b7386fdc097ab53dfa8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d372e342d627269676874677265656e2e737667)](https://secure.php.net/)[![Swoole Version](https://camo.githubusercontent.com/2b08ceed852c672ccac1ba1e0db0399fd6c269b1f40d58b8d4cf11455a95446d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73776f6f6c652d2533453d342e382e302d627269676874677265656e2e737667)](https://github.com/swoole/swoole-src)[![IMI License](https://camo.githubusercontent.com/c8213b79ccf62c5f525574c75497d9901939ddc70e32ed3f0de343fd6835bb25/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f696d697068702f696d692d636f6e6669672d63656e7465722e737667)](https://github.com/imiphp/imi-config-center/blob/master/LICENSE)

介绍
--

[](#介绍)

此项目是 imi 框架的配置中心组件，仅包含抽象定义，无实现代码。请结合具体实现的配置组件使用。

> 正在开发中，随时可能修改，请勿用于生产环境！

**支持的配置中心：**

- Nacos ([imi-nacos](https://github.com/imiphp/imi-nacos))
- Apollo
- etcd ([imi-etcd](https://github.com/imiphp/imi-etcd))
- Consul
- Zookeeper ([imi-zookeeper](https://github.com/imiphp/imi-zookeeper))

……

设计
--

[](#设计)

### 监听模式

[](#监听模式)

#### 工作进程模式

[](#工作进程模式)

每个进程自己监听，适用于 Swoole 环境。

#### 进程模式

[](#进程模式)

由一个专门的进程监听，并通知到其它进程。适用于 Swoole、Workerman 环境。

对配置中心压力更小。

---

> php-fpm 模式比较特殊，是走的文件缓存逻辑。超过一定时间才去请求配置中心，获取数据，实时性有一定影响。

### 监听方式

[](#监听方式)

#### 客户端轮询

[](#客户端轮询)

客户端定时请求配置中心，对配置中心服务端压力较大，但是最为通用。

#### 服务端推送（长轮询）

[](#服务端推送长轮询)

如果配置中心支持服务端推送（长轮询），建议用这个方式，对配置中心服务端压力较小。

社群
--

[](#社群)

**imi 框架交流群：** 17916227 [![点击加群](https://camo.githubusercontent.com/75b53e353bb9e5064662e185a6d39f4bb88c4e45bd3a1240ddf599525edb6afa/68747470733a2f2f7075622e69647171696d672e636f6d2f7770612f696d616765732f67726f75702e706e67 "点击加群")](https://jq.qq.com/?_wv=1027&k=5wXf4Zq)

**微信群：**

[![imi](https://github.com/imiphp/imi/raw/2.1/res/wechat.png)](https://github.com/imiphp/imi/raw/2.1/res/wechat.png)

**打赏赞助：**

运行环境
----

[](#运行环境)

- [PHP](https://php.net/) &gt;= 7.4
- [Composer](https://getcomposer.org/) &gt;= 2.0
- [Swoole](https://www.swoole.com/) &gt;= 4.8.0
- [imi](https://www.imiphp.com/) &gt;= 2.1

版权信息
----

[](#版权信息)

`imi-config-center` 遵循 MulanPSL-2.0 开源协议发布，并提供免费使用。

捐赠
--

[](#捐赠)

[![](https://camo.githubusercontent.com/24487a1dd6ab2d9c7b7492027024eae97eba149b95eab696a568034005ae335d/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f696d697068702f696d6940322e312f7265732f7061792e706e67)](https://camo.githubusercontent.com/24487a1dd6ab2d9c7b7492027024eae97eba149b95eab696a568034005ae335d/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f696d697068702f696d6940322e312f7265732f7061792e706e67)

开源不求盈利，多少都是心意，生活不易，随缘随缘……

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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

Every ~50 days

Total

3

Last Release

1258d ago

### Community

Maintainers

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

---

Top Contributors

[![Yurunsoft](https://avatars.githubusercontent.com/u/20104656?v=4)](https://github.com/Yurunsoft "Yurunsoft (14 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/imiphp-imi-config-center/health.svg)

```
[![Health](https://phpackages.com/badges/imiphp-imi-config-center/health.svg)](https://phpackages.com/packages/imiphp-imi-config-center)
```

PHPackages © 2026

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