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

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

maplesnow/laravel-apollo
========================

Apollo agent for laravel.

v1.0.0(7y ago)07MITPHP

Since Aug 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/summerway/laravel-apollo)[ Packagist](https://packagist.org/packages/maplesnow/laravel-apollo)[ RSS](/packages/maplesnow-laravel-apollo/feed)WikiDiscussions master Synced yesterday

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

Laravel Apollo integration.
===========================

[](#laravel-apollo-integration)

用[apollo](https://github.com/ctripcorp/apollo)实现配置和语言包的统一的管理和下发

安装
--

[](#安装)

```
composer require maplesnow/laravel-apollo
```

添加 serviceProvider

```
MapleSnow\Apollo\Providers\ApolloServiceProvider::class
```

添加 facade

```
'Apollo' => MapleSnow\Apollo\Facades\Apollo::class
```

发布 ServiceProvider

```
php artisan vendor:publish --provider="MapleSnow\Apollo\Providers\ApolloServiceProvider"
```

配置`.env`参数

```
APP_ID=your app id
CLUSTER=default
APOLLO_NAMESPACES="application, common_ns, others"
APOLLO_CONFIG_SERVER=http://apollometa:8090
```

开启**Apollo**agent

```
php artisan apollo.start-agent
```

发布配置
----

[](#发布配置)

在apollo配置中心修改配置，点击发布,项目内的.env文件将被重写。

发布语言包
-----

[](#发布语言包)

1.添加laravel支持
将 **app/config/app.php** 中 `Illuminate\Translation\TranslationServiceProvider` 替换成 `Kaishiyoku\Core\Translation\TranslationServiceProvider`
2\. 在apollo配置中心添加前缀为`Lang`的namespace，默认是`en` ,若需其他语言需加上后缀,[多国语言参考](https://github.com/caouecs/Laravel-lang/blob/master/Source.md)
3\. 使用`yaml`格式编写语言包

```
# 用户自定义
message:
    hello: '你好 :name'

# Auth 认证
auth:
    failed: '认证失败'
```

4. 修改完成后，点击发布
5. 项目中的用法

```
dd(trans("lang.message.hello",['name','mapleSnow']),trans("lang.auth.failed"));
```

License
-------

[](#license)

laravel-apollo is free software distributed under the terms of the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 59.1% 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 ~36 days

Total

7

Last Release

2610d ago

Major Versions

0.1.5 → v1.0.02019-03-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/e3058701be7b10c7b12972629160b82b9f4dcae7c0b95ed09e7d695fb542552a?d=identicon)[mapleSnow](/maintainers/mapleSnow)

---

Top Contributors

[![lackhurt](https://avatars.githubusercontent.com/u/1578770?v=4)](https://github.com/lackhurt "lackhurt (13 commits)")[![summerway](https://avatars.githubusercontent.com/u/5858441?v=4)](https://github.com/summerway "summerway (7 commits)")[![RemoteOnly](https://avatars.githubusercontent.com/u/10670160?v=4)](https://github.com/RemoteOnly "RemoteOnly (1 commits)")[![whistlesun](https://avatars.githubusercontent.com/u/1300426?v=4)](https://github.com/whistlesun "whistlesun (1 commits)")

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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