Skip to content

Ariadne-CMS/arc-config

Repository files navigation

ARC: Ariadne Component Library

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'