derafu / config
Derafu: Config - Yet Another Config Lib.
dev-main
2025-03-11 12:52 UTC
Requires
- php: ^8.3
- derafu/container: dev-main
Requires (Dev)
- ext-xdebug: *
- derafu/foundation: dev-main
- friendsofphp/php-cs-fixer: ^3.63
- phpstan/phpstan: ^1.12
- phpunit/phpunit: ^11.4
This package is auto-updated.
Last update: 2025-03-11 12:54:08 UTC
README
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.