arc/config
Ariadne Component Library: hierarchical configuration management Component
Maintainers
3.0
2020-02-23 13:03 UTC
Requires
- php: >=7.1
- arc/base: ~3.0
Requires (Dev)
- phpunit/phpunit: 9.*
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT c35c437a70cf542ef17577799387bcac57fab59c
- Auke van Slooten <auke.woop@muze.nl>
README
👁 Scrutinizer Code Quality
👁 Latest Stable Version
👁 Total Downloads
👁 Latest Unstable Version
👁 License
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'
