celumen/config-client

spring cloud config 客户端

5.2.1 2020-10-23 09:23 UTC

This package is auto-updated.

Last update: 2024-09-23 18:02:45 UTC


README

本项目是一个基于spring cloud config公共配置中心的PHP客户端,在lumen框架中引入composer包后,启动Swoole服务即可使用

1、在.env中配置

CONFIG_HOST=http://config.service.gouuse.cn:38080
CONFIG_FILE=zqdl-scrm-dev.yml

2、在代码中使用GEnv($key, $default)获取配置内容