Download the PHP package chuckrincon/lumen-config-discover without Composer
On this page you can find all versions of the php package chuckrincon/lumen-config-discover. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download chuckrincon/lumen-config-discover
More information about chuckrincon/lumen-config-discover
Files in chuckrincon/lumen-config-discover
Package lumen-config-discover
Short Description Load your Lumen configuration files with ease using the Service Providers.
License MIT
Homepage https://github.com/chuckrincon/lumen-config-discover
Informations about the package lumen-config-discover
Lumen Config Discover
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.
Usage
After download the package form composer, you need to add the following line in your bootstrap/app.php
file to register the provider.
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
- Twitter: @chuckrincon
- Github: @chuckrincon
Show your support
Please ⭐️ this repository if this project helped you!
📝 License
Copyright © 2019 Chuck Rincon.
This project is MIT licensed.