Package Data | |
---|---|
Maintainer Username: | chuckrincon |
Maintainer Contact: | chuckrincon@gmail.com (Chuck Rincon) |
Package Create Date: | 2019-08-23 |
Package Last Update: | 2019-08-23 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-15 15:21:52 |
Package Statistics | |
---|---|
Total Downloads: | 58,239 |
Monthly Downloads: | 792 |
Daily Downloads: | 3 |
Total Stars: | 6 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Lumen Config Discover is a package to your configuration files with ease using the power of the Service Providers
.
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.
Use composer to install Lumen Config Discover.
composer require chuckrincon/lumen-config-discover
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:
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
.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
👤 Chuck Rincon
Please ⭐️ this repository if this project helped you!
Copyright © 2019 Chuck Rincon. This project is MIT licensed.