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

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

zdk/apollo
==========

3.3.2(5y ago)01.3kMITPHPPHP ^7.1.3

Since Dec 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/zenithEver/LaravelApollo)[ Packagist](https://packagist.org/packages/zdk/apollo)[ RSS](/packages/zdk-apollo/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (3)Versions (23)Used By (0)

laravel 接入携程 [Apollo](https://github.com/ctripcorp/apollo)
==========================================================

[](#laravel-接入携程-apollo)

概述
--

[](#概述)

Apollo（阿波罗）是携程框架部门研发的分布式配置中心，能够集中化管理应用不同环境、不同集群的配置，配置修改后能够实时推送到应用端，并且具备规范的权限、流程治理等特性，适用于微服务配置管理场景。 此插件让 laravel 框架方便的接入 apollo

运行环境
----

[](#运行环境)

- PHP 7.0
- laravel 5.7
- lumen 5.7

安装方法
----

[](#安装方法)

composer require sunaloe/apollo-laravel

### laravel

[](#laravel)

- 配置引入 把 /apollo-laravel/config/apollo.php 拷贝放到配置目录
- 服务提供者引入

```
 'providers' => [
        \Sunaloe\ApolloLaravel\ApolloLaravelServiceProvider::class,
    ],
```

### lumen

[](#lumen)

- 配置引入 把 /apollo-laravel/config/apollo.php 拷贝放到配置目录

```
    $app->configure('apollo');
```

- 服务提供者引入

```
    $app->register(\Illuminate\Redis\RedisServiceProvider::class);
    $app->register(\Sunaloe\ApolloLaravel\ApolloServiceProvider::class);
```

使用
--

[](#使用)

- apollo 配置监控

#### 配置work的常驻进程

[](#配置work的常驻进程)

```
php artisan apollo:work
```

#### 使用配置

[](#使用配置)

```
env('apollo:配置名')
```

### 重新更新env变量

[](#重新更新env变量)

```
\Sunaloe\ApolloLaravel\Facades\Apollo::resetConfig();
```

License
-------

[](#license)

- MIT

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

22

Last Release

1893d ago

Major Versions

1.2.6 → 3.12021-03-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/48427b922fd62e2a8892315ebc14c3a6dae1d044e1ad178a082e2f3f33aa777f?d=identicon)[zdktfy](/maintainers/zdktfy)

### Embed Badge

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

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

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[livewire/flux

The official UI component library for Livewire.

9527.8M127](/packages/livewire-flux)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725173.0k14](/packages/tallstackui-tallstackui)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

198321.1k](/packages/fumeapp-modeltyper)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)

PHPackages © 2026

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