arc/config

Ariadne Component Library: hierarchical configuration management Component

3.0 2020-02-23 13:03 UTC

This package is auto-updated.

Last update: 2024-11-10 23:37:35 UTC


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'