Derafu: Config - Yet Another Config Lib
Installation
Install via Composer:
composer require derafu/config
Basic Usage
use Derafu\Config\Configuration; // Or `Options`.
$configuration = new Configuration([
'app' => [
'name' => 'Derafu Config',
],
]);
echo $configuration['app']['name']; // "Derafu Config"
echo $configuration['app.name']; // "Derafu Config"
echo $configuration->get('app.name'); // "Derafu Config"
echo $configuration->get('app')->get('name'); // "Derafu Config"
Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
License
This package is open-sourced software licensed under the MIT license.