This package can be used to read configuration settings from file YAML format.
It uses a separate class named SPYC, written by Chris Wanstrath, to parse YAML configuration files and returns an associative array with pairs of configuration options and the respective values.
The configuration class uses the singleton pattern, so a configuration file is loaded and parsed only once per script.
It automatic switches between configuration files depending on the machine the script is running.
It also checks the request query string for language parameter and automatically loads the contents of the relevant localization file into a global variable for easier use. |