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.
|
Pages that reference this package |
|
|
Extending PHP Today, an article was posted on Zend’s Developer zone that caught my eye: Using YAML with PHP and PECL... |
Latest pages that reference packages
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.
|
Files |
|