PHPackages                             shershon/php-apollo - 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. shershon/php-apollo

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

shershon/php-apollo
===================

php项目接入Apollo的包

1.0.0(3y ago)07MITPHP

Since Aug 23Pushed 1y agoCompare

[ Source](https://github.com/shershon-php-package/php-apollo)[ Packagist](https://packagist.org/packages/shershon/php-apollo)[ RSS](/packages/shershon-php-apollo/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

1.php-apollo
------------

[](#1php-apollo)

php项目接入Apollo的包

2.安装
----

[](#2安装)

- 配置composer.json

```
{
  "require-dev": {
    "shershon/php-apollo": "^1.0.0"
  },
  "config": {
    "secure-http": false
  },
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/shershon-php-package/php-apollo.git"
    }
  ]
}
```

- composer require --ignore-platform-reqs shershon/php-apollo
- rm -rf vendor/shershon/php-apollo/.git

3.更新包版本
-------

[](#3更新包版本)

- composer require --ignore-platform-reqs shershon/php-apollo:1.0.0(替换成指定的版本)
- rm -rf vendor/shershon/php-apollo/.git

4.最佳实践
------

[](#4最佳实践)

- apollo不要安装在项目中，最好在项目外运行一个单独的守护进程，运行apollo脚本，生成.env文件，然后再用软链将该.env文件链接到项目指定目录
- 原因：防止apollo和项目产生强依赖关系，这样即使apollo挂了，我们依然可以使用我们最初的方法手动修改.env实现环境变量的修改

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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

1362d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/58d8e7e825006e80833c8f3693a2b9a720af2f8af833b7faf3f442adf347207b?d=identicon)[xiaoshan](/maintainers/xiaoshan)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shershon-php-apollo/health.svg)

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

###  Alternatives

[riipandi/laravel-optikey

Use UUID, Ulid, or nanoid as optional or primary key in Laravel.

429.1k](/packages/riipandi-laravel-optikey)

PHPackages © 2026

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