chuckrincon/lumen-config-discover 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

chuckrincon/lumen-config-discover

最新稳定版本:1.0.1

Composer 安装命令:

composer require chuckrincon/lumen-config-discover

包简介

Load your Lumen configuration files with ease using the Service Providers.

README 文档

README

Lumen Config Discover is a package to your configuration files with ease using the power of the Service Providers.

Why? Lumen does not support config files?

Actually, Lumen does support custom configuration files, but they need to be enabled first.
And to be honest, if you have a lot of config this method will be a little messy.

Installation

Use composer to install Lumen Config Discover.

composer require chuckrincon/lumen-config-discover

Usage

After download the package form composer, you need to add the following line in your bootstrap/app.php file to register the provider.

$app->register(Chuckrincon\LumenConfigDiscover\DiscoverServiceProvider::class);

And that's all, you are ready to go:

How it works?

The DiscoverServiceProvider automatically search and validates if the config folder exists and map all the files in it, then will register all the folder configuration files, if the folder does not exists is throwing a FileNotFoundException.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Author

👤 Chuck Rincon

Show your support

Please ⭐️ this repository if this project helped you!

📝 License

Copyright © 2019 Chuck Rincon.
This project is MIT licensed.

统计信息

  • 总下载量: 67.34k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-08-23