|Classes of Miraz Mac||>||Flat Config||>||README.md||>||Download|
FlatConfig is a lightweight flat file configuration management PHP class. It uses JSON and file storage to store configuration data. The code is well commented so here I just provided some basic usage example. For brief description please explore the code <3
*NOTE: Don't forget to protect your configurtion file from direct access!*
Install via composer
How to use this thing?
To use FlatConfig, we need to create an instance first with the path to the configuration file. File will be created automaticly if doesn't exist.
Add some data
Retrieve the whole config array
Get a single value by its key
Thats all folks!