PHPackages                             easyswoole/apollo-config - 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. [Framework](/categories/framework)
4. /
5. easyswoole/apollo-config

ActiveLibrary[Framework](/categories/framework)

easyswoole/apollo-config
========================

easyswoole component

1.0.1(6y ago)61.2k1Apache-2.0PHPPHP &gt;=7.1.0

Since Jul 6Pushed 6y agoCompare

[ Source](https://github.com/easy-swoole/apollo-config)[ Packagist](https://packagist.org/packages/easyswoole/apollo-config)[ Docs](https://www.easyswoole.com/)[ RSS](/packages/easyswoole-apollo-config/feed)WikiDiscussions master Synced 2mo ago

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

apollo-config
=============

[](#apollo-config)

Easyswoole Apollo 配置中心

安装
--

[](#安装)

```
composer require easyswoole/apollo-config

```

示例代码
----

[](#示例代码)

```

use EasySwoole\ApolloConfig\Server;
use EasySwoole\ApolloConfig\Apollo;

go(function (){
    $server = new Server([
        'server'=>'http://106.12.25.204:8080',
        'appId'=>'easyswoole'
    ]);

    $config = new Apollo();
    /*
     * 设置当前客户端所处的数据中心名字，可选
     */
    $config->getClient()->setDataCenter('testDataCenter');

    $config->setServer($server);
    /*
     * 配置需要同步的配置项namespace
     */
    $config->setNameSpace([
        'mysql'
    ]);
    /*
     * 进行配置项同步
     */
    $config->sync();

    var_dump($config->getConf('mysql'));
    var_dump($config->getConf('mysql.db'));
    var_dump($config->getReleaseKey('mysql'));

});

```

> 自己自己添加定时器进行定时同步

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~40 days

Total

2

Last Release

2460d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/45c234d5f129ea570e630425636299127647534f0c2cbb073555e2c45d403d6f?d=identicon)[kiss291323003](/maintainers/kiss291323003)

---

Top Contributors

[![kiss291323003](https://avatars.githubusercontent.com/u/24490609?v=4)](https://github.com/kiss291323003 "kiss291323003 (6 commits)")

---

Tags

asyncframeworkswooleeasyswoole

### Embed Badge

![Health badge](/badges/easyswoole-apollo-config/health.svg)

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

###  Alternatives

[easyswoole/easyswoole

An efficient swoole framework

4.8k186.9k50](/packages/easyswoole-easyswoole)[easyswoole/mysqli

An efficient swoole framework

34120.5k27](/packages/easyswoole-mysqli)[easyswoole/redis

easyswoole component

3391.8k12](/packages/easyswoole-redis)[easyswoole/kafka

An efficient swoole framework

4211.1k](/packages/easyswoole-kafka)[easyswoole/compiler

easyswoole component

691.1k](/packages/easyswoole-compiler)[easyswoole/fast-cache

An efficient swoole framework

1030.3k2](/packages/easyswoole-fast-cache)

PHPackages © 2026

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