PHPackages                             elemenx/apollo-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. elemenx/apollo-client

ActiveLibrary[API Development](/categories/api)

elemenx/apollo-client
=====================

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

0.1.7(5y ago)05.6k↓11.8%1MITPHPPHP ~7.0 || ~8.0

Since Jul 6Pushed 5y agoCompare

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

READMEChangelogDependenciesVersions (10)Used By (1)

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

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

install
-------

[](#install)

php version &gt;= 7.0

```
$ composer require elemenx/apollo-client
```

php version &gt;= 5.4 , &lt;7.0

```
$ composer require elemenx/apollo-client --ignore-platform-reqs
```

Features
--------

[](#features)

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

Usage
-----

[](#usage)

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

### 客户端示例代码

[](#客户端示例代码)

```
#!/usr/bin/env php
