Download the PHP package totoro/apollo-config without Composer
On this page you can find all versions of the php package totoro/apollo-config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package apollo-config
Apollo config manage
- 方便程序快速获取配置参数
- 支持
redis
、SHM
、file
存储方式 SHM
只支持linux下使用- Laravel 5.5+
Install
In Laravel
- 在
config/app.php
In Lumen
- 在
bootstrap/app.php
Usage
重要说明
APOLLO_DRIVER
为 file
时只要很简单的配置就行
Configuration
- 执行
php artisan apollo:publish-config
将配置文件发布到 (config/apollo.php
)
当 APOLLO_DRIVER
设置为 redis
或者 shm
时
- 配置文件根据部署的参数设置好
- 执行
php artisan apollo:publish-consul
将注册中心的服务地址发布到存储库中 - 执行
php artisan apollo:publish-component
将配置中心参数发布到存储库中 - 可以执行
php artisan apollo:clear-apollo
清空当前存储库
Cron
在 app/Console/Kerner.php
中加上定时任务调用
- 启动调度器
当 APOLLO_DRIVER
设置为 file
时
-
.env
中设置配置文件的路径,默认/etc/xultra/php_conf
,当然也可以只直接在config/apollo.php
中设置 - 在配置文件
/etc/xultra/php_conf
中设置参数
All versions of apollo-config with dependencies
PHP Build Version
Package Version
The package totoro/apollo-config contains the following files
Loading the files please wait ....