PHPackages                             wujunze/apollo-laravel-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wujunze/apollo-laravel-client

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

wujunze/apollo-laravel-client
=============================

Laravel apollo configuration-management client

1.0.3(7y ago)699MITPHPPHP ^7.1

Since Dec 24Pushed 7y ago1 watchersCompare

[ Source](https://github.com/wujunze/apollo-laravel-client)[ Packagist](https://packagist.org/packages/wujunze/apollo-laravel-client)[ RSS](/packages/wujunze-apollo-laravel-client/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

apollo-laravel-client
=====================

[](#apollo-laravel-client)

Apollo configuration management Laravel client

[中文说明](https://github.com/wujunze/apollo-laravel-client/blob/master/README_CN.md)

[![Build Status](https://camo.githubusercontent.com/f0db947a9890233ee419a0d9fe2b2bcd1c127b542a9bcbf6dd518bdfb189a96d/68747470733a2f2f7472617669732d63692e6f72672f77756a756e7a652f61706f6c6c6f2d6c61726176656c2d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/wujunze/apollo-laravel-client)[![Latest Stable Version](https://camo.githubusercontent.com/6e0e875b4c469f253df720a11075ae643c944e4d24c9ec29a2a3aa00d3abd2ed/68747470733a2f2f706f7365722e707567782e6f72672f77756a756e7a652f61706f6c6c6f2d6c61726176656c2d636c69656e742f762f737461626c652e737667)](https://packagist.org/packages/wujunze/apollo-laravel-client)[![Licence](https://camo.githubusercontent.com/7f5d10135513a83652cd6c932477a8fce0c5b1eff8ef320536bd2d42b9bbc90e/68747470733a2f2f706f7365722e707567782e6f72672f77756a756e7a652f61706f6c6c6f2d6c61726176656c2d636c69656e742f6c6963656e73652e737667)](https://packagist.org/packages/wujunze/apollo-laravel-client)[![Total Downloads](https://camo.githubusercontent.com/91cf83b0f01cf341245090d0cd8b1ee64d32cda986422ee8e20ccda4a0385a44/68747470733a2f2f706f7365722e707567782e6f72672f77756a756e7a652f61706f6c6c6f2d6c61726176656c2d636c69656e742f646f776e6c6f6164732e737667)](https://packagist.org/packages/wujunze/apollo-laravel-client)

Features
========

[](#features)

- Laravel Apollo client is implemented based on the HTTP API provided by Apollo
- Laravel's env config mechanism is non-intrusive and can seamlessly access Apollo
- Update configuration files automatically through Command
- [Apollo configuration center introduction to the introduction](https://github.com/ctripcorp/apollo/wiki/Apollo%E9%85%8D%E7%BD%AE%E4%B8%AD%E5%BF%83%E4%BB%8B%E7%BB%8D)

Install
=======

[](#install)

```
 composer require wujunze/apollo-laravel-client
```

### in your console to publish default configuration files.

[](#in-your-console-to-publish-default-configuration-files)

If you use Laravel &lt; 5.5 run:

```
php artisan vendor:publish --provider="WuJunze\LaravelApollo\Providers\ServiceProvider"
```

#### If you are using Laravel 5.5 run:

[](#if-you-are-using-laravel-55-run)

```
php artisan vendor:publish
```

and choose the number matching `"WuJunze\LaravelApollo\Providers\ServiceProvider"` provider. This operation will create config file in `config/apollo.php`.

Configuration
=============

[](#configuration)

you can change the locale at config/apollo.php

```
[
//Your env template  Just fill it out according to Laravel's env file
    'env_tpl' =>
"APP_NAME = {APP_NAME}
APP_ENV = {APP_ENV}
APP_KEY = {APP_KEY}",
    'env_dir' => env('ENV_DIR', app_path()),
    'env_file' => env('ENV_FILE', '.env'),
    'save_dir' => env('SAVE_DIR', storage_path()),
    'server' => env('APOLLO_SERVER', 'http://127.0.0.1:8080'),
    //Apollo app_id
    'app_id' => env('APOLLO_SERVER_APP_ID', 'contract'),
    'namespaces' => env('APOLLO_SERVER_APP_ID', ['application']),
    // Grayscale published client IP
    'client_ip' => env('APOLLO_CLIENT_IP'),
    'restart' => env('APOLLO_RESTART', false),

    'cluster' => env('APOLLO_CLUSTER', 'default'),
    'pull_timeout' => env('APOLLO_PULL_TIMEOUT', 10),
    'interval_timeout' => env('APOLLO_INTERVAL_TIMEOUT', 60),
];
```

Usage
=====

[](#usage)

run the command

```
 php artisan apollo:update
```

Inspiration and Thanks
======================

[](#inspiration-and-thanks)

[Apollo](https://github.com/ctripcorp/apollo/wiki/%E5%85%B6%E5%AE%83%E8%AF%AD%E8%A8%80%E5%AE%A2%E6%88%B7%E7%AB%AF%E6%8E%A5%E5%85%A5%E6%8C%87%E5%8D%97)
[apollo-php-client](https://github.com/multilinguals/apollo-php-client)

License
=======

[](#license)

MIT

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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 ~10 days

Total

2

Last Release

2685d ago

Major Versions

0.1.0 → 1.0.32019-01-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/0bf502ba4ce9952fcb8a819f9aca3fa616e237ad8d59a47b9071710e95422c1d?d=identicon)[wujunze](/maintainers/wujunze)

---

Top Contributors

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

---

Tags

apolloconfiguration-managementlaravlelaravelconfiguration managementapollo

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wujunze-apollo-laravel-client/health.svg)

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

###  Alternatives

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[nickurt/laravel-akismet

Akismet for Laravel 11.x/12.x/13.x

97139.6k2](/packages/nickurt-laravel-akismet)[whitecube/laravel-timezones

Store UTC dates in the database and work with custom timezones in the application.

106106.2k](/packages/whitecube-laravel-timezones)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[forxer/laravel-gravatar

A library providing easy gravatar integration in a Laravel project.

4235.6k](/packages/forxer-laravel-gravatar)

PHPackages © 2026

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