ofcold / component-config
Manage Ofcold configuration by persistent storage.
1.1
2021-11-09 08:54 UTC
Requires
- php: ^7.4|^8.0
- illuminate/support: ^8.0|^9.0
- symfony/finder: ^5.1
Requires (Dev)
- mockery/mockery: ^1.4
- phpunit/phpunit: ^10
This package is auto-updated.
Last update: 2024-11-09 15:29:03 UTC
README
Manage Promise configuration by persistent storage.
Installing
composer require ofcold/component-config
Useing
$config = new Ofcold\Component\Config\Repository // Set initial configuration items $config->addNamespace('your-config-path'); // Add a namespace to configuration. $config->addNamespace(__DIR__ '/your-path/config', 'user'); // Get a config item. $config->get('foo'); // Get a namespace config item. $config->get('user::foo.bar');