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

ActiveLibrary[API Development](/categories/api)

leeqvip/php-apollo
==================

Apollo PHP Client

v1.1.0(5mo ago)111MITPHPPHP &gt;=8.0CI passing

Since Jan 21Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/leeqvip/php-apollo)[ Packagist](https://packagist.org/packages/leeqvip/php-apollo)[ RSS](/packages/leeqvip-php-apollo/feed)WikiDiscussions main Synced today

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

PHP Apollo Client
=================

[](#php-apollo-client)

[![PHPUnit](https://github.com/leeqvip/php-apollo/actions/workflows/phpunit.yml/badge.svg)](https://github.com/leeqvip/php-apollo/actions/workflows/phpunit.yml)[![Coverage Status](https://camo.githubusercontent.com/5f450f2668154a47ec9543f70017638c17c452a8dc976efa6893abd908021c54/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6c6565717669702f7068702d61706f6c6c6f2f62616467652e737667)](https://coveralls.io/github/leeqvip/php-apollo)[![Latest Stable Version](https://camo.githubusercontent.com/36c0bfd0872cf1d3c9a50de6af48bd1f70ef66506d1f0e7ce7759379590f9446/68747470733a2f2f706f7365722e707567782e6f72672f6c6565717669702f7068702d61706f6c6c6f2f762f737461626c65)](https://packagist.org/packages/leeqvip/php-apollo)[![Total Downloads](https://camo.githubusercontent.com/8c2b7e3611c3cc0d716f7f13149d4acdd2f4018eff4420c5acac9dcccf2bb5f4/68747470733a2f2f706f7365722e707567782e6f72672f6c6565717669702f7068702d61706f6c6c6f2f646f776e6c6f616473)](https://packagist.org/packages/leeqvip/php-apollo)[![License](https://camo.githubusercontent.com/e8546a9397c0722d35b4a99af209b26251c81131a3e84ef68bdd73200210d8a1/68747470733a2f2f706f7365722e707567782e6f72672f6c6565717669702f7068702d61706f6c6c6f2f6c6963656e7365)](https://packagist.org/packages/leeqvip/php-apollo)

A comprehensive PHP client for Apollo configuration center, supporting configuration retrieval, real-time updates, local caching, and multiple configuration formats.

Features
--------

[](#features)

- ✅ PHP 8.0+ support with strict type declarations
- ✅ Singleton pattern design
- ✅ Multiple namespace support
- ✅ Real-time configuration updates (long polling)
- ✅ Local cache support with fallback mechanism
- ✅ Configuration change callbacks
- ✅ Dot-notation configuration key support
- ✅ Multiple configuration format support (YAML, JSON, Properties)
- ✅ Authentication mechanism (HMAC-SHA1 signature)
- ✅ Exception-based error handling
- ✅ GuzzleHTTP-based HTTP client
- ✅ PSR-4 autoloading standard

Installation
------------

[](#installation)

Install via Composer:

```
composer require leeqvip/php-apollo
```

Quick Start
-----------

[](#quick-start)

### Basic Usage

[](#basic-usage)

```
