Login   Register  
PHP Classes
elePHPant
Icontem

Simple YAML Config Reader: Read configuration settings from YAML files

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Chavo
Name: Chavo <contact>
Classes: 1 package by
Country: Bulgaria Bulgaria
Age: 37
All time rank: 217817 in Bulgaria Bulgaria
Week rank: 1912 Up13 in Bulgaria Bulgaria Up


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
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.

  Classes of Chavo  >  Simple YAML Config Reader  >  Download Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Simple YAML Config Reader
Base name: yamlconfig
Description: Read configuration settings from YAML files
Version: 1.0.0
PHP version: 5.0
License: GNU General Public License (GPL)
All time users: 967 users
All time rank: 3460
Week users: 0 users
Week rank: 1533 Equal
 
  Groups   Rate classes User ratings   Trackback  
  Applications   Related pages   Files Files  

  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


  User ratings  
Not enough user ratings

  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 Latest pages that reference packages


  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related pages  
YAML Specifications
Information on the YAML format
SPYC parser
YAML Parser Class for PHP

  Files folder image Files  
File Role Description
Plain text file settings.class.php Class Main Class
Accessible without login Plain text file localhost.yml Data Sample configuration file
Accessible without login Plain text file example.php Example Example script
Plain text file spyc.php Class YAML parser class
Accessible without login Plain text file en.yml Data Sample localization file
Accessible without login Plain text file fr.yml Data Sample localization file
Accessible without login Plain text file readme.txt Doc. Readme file

Install with Composer Install with Composer - Download 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.