arc / config
Ariadne Component Library: hierarchical configuration management Component
3.0
2020-02-23 13:03 UTC
Requires
- php: >=7.1
- arc/base: ~3.0
Requires (Dev)
- phpunit/phpunit: 9.*
README
A flexible component library for PHP
The Ariadne Component Library is a spinoff from the Ariadne Web Application Framework and Content Management System [ http://www.ariadne-cms.org/ ]
arc/config contains
- config: a generic config class that allows you to override configuration properties by path.
Code example:
\arc\config::configure('color', 'blue'); $color = \arc\config::cd('/parent/child/')->acquire('color'); // => 'blue'
And:
\arc\config::cd('/parent/')->configure('color', 'red'); $color = \arc\config::cd('/parent/child/')->acquire('color'); // => 'red'