alonity / config
Alonity logger
dev-main
2021-07-21 09:32 UTC
Requires
- php: ^7.1
- ext-mbstring: *
This package is auto-updated.
Last update: 2025-04-27 20:56:55 UTC
README
Configuration component
Install
composer require alonity/config
Examples
use alonity\config\Config; require('vendor/autoload.php'); $mainConfig = Config::get('main'); // ./vendor/../main.php $value = Config::getValue('main', 'example'); // Like $mainConfig['example'] $load = Config::loader([ 'main', 'Other' => '../../../../configs/other' ]); // Now you can call to config via $load['Other'] or Config::get('Other')
Documentation: https://alonity.gitbook.io/alonity/components/config