PHPackages                             zhaojunlike/apollo-php-client - 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. [API Development](/categories/api)
4. /
5. zhaojunlike/apollo-php-client

ActiveLibrary[API Development](/categories/api)

zhaojunlike/apollo-php-client
=============================

apollo client for php, forked from multilinguals/apollo-php-client

0.0.1(7y ago)0101MITPHPPHP ~7.0

Since Nov 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/zhaojunlike/apollo-php-client)[ Packagist](https://packagist.org/packages/zhaojunlike/apollo-php-client)[ Docs](https://github.com/zhaojunlike/apollo-php-client/)[ RSS](/packages/zhaojunlike-apollo-php-client/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (1)

[携程Apollo](https://github.com/ctripcorp/apollo)的PHP客户端
======================================================

[](#携程apollo的php客户端)

install
-------

[](#install)

php version &gt;= 7.0

```
$ composer require godtoy/apollo-php-client
```

Features
--------

[](#features)

- 支持apollo配置变更的适时获取
- 支持拉取配置后自定义的回调处理

Usage
-----

[](#usage)

客户端以cli的方式后台启动执行，支持apollo配置的适时获取，并将配置保存在指定的目录供应用程序读取解析

### 配置管理

[](#配置管理)

拉取的配置默认保存在脚本所在目录，每个namespace的配置以`apolloConfig.{$namespaceName}.php`的方式命名保存

### Docker环境客户端自启动

[](#docker环境客户端自启动)

在docker的启动脚本中加入启动代码，一般的php容器启动脚本是docker-php-entrypoint

```
if [ -f "/path/to/start.php" ]; then
    apollo_ps=$(ps -aux | grep -c "php /path/to/start.php")
    if [ $apollo_ps -eq 1 ]; then
        php /path/to/start.php &
    fi
fi
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

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

2735d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ebc3ec8bcff409ce498af7bdf3a66e8e4e36c4abbbd70ada7175011fa34d5b6?d=identicon)[zhaojunlike](/maintainers/zhaojunlike)

---

Top Contributors

[![gtsigner](https://avatars.githubusercontent.com/u/13638996?v=4)](https://github.com/gtsigner "gtsigner (1 commits)")

---

Tags

clientapollo

### Embed Badge

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

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

###  Alternatives

[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k22.6M232](/packages/openai-php-client)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69333.0M114](/packages/algolia-algoliasearch-client-php)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[multilinguals/apollo-client

apollo client for php

17857.8k4](/packages/multilinguals-apollo-client)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)

PHPackages © 2026

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