PHP Classes
Icontem

Class: Simple YAML Config Reader


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Chavo  >  Simple YAML Config Reader  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Simple YAML Config Reader Support forum
Base name: yamlconfig
Description: Read configuration settings from YAML files
Version: -
Required PHP version: 5.0
License: GNU General Public License (GPL)
All time users: 581 users
All time rank: 3404
Week users: 6 users
Week rank: 1347
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Trackback   Applications   Related links   Files Files  

Author

Picture of Chavo
Name: Chavo <e-mail contact>
Published packages: 1 Browse this author's classes Browse this author's classes
Country: Bulgaria Bulgaria - PHP jobs in Bulgaria
Home page: ???
Age: 32
All time rank: 1913
Week rank: 965

Groups

Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Configuration Configuration formats parsing and generation View top rated classes

Detailed description

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.

User ratings

Not yet rated by the users

Trackback links

Link Description
Extending PHP Today, an article was posted on Zend’s Developer zone that caught my eye: Using YAML with PHP and PECL...

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Related links

Link Description
YAML Specifications Information on the YAML format
SPYC parser YAML Parser Class for PHP

Files

File Role Description
Plain text file settings.class.php Class Main Class
Plain text file localhost.yml Data Sample configuration file
Plain text file example.php Example Example script
Plain text file spyc.php Class YAML parser class
Plain text file en.yml Data Sample localization file
Plain text file fr.yml Data Sample localization file
Plain text file readme.txt Doc. Readme file
Download all files: yamlconfig.tar.gz yamlconfig.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products