Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tombruijn/yaml-selector

YAML variable selector for PHP. It support deep level selection and variable replacements.
https://github.com/tombruijn/yaml-selector

Last synced: 13 days ago
JSON representation

YAML variable selector for PHP. It support deep level selection and variable replacements.

Awesome Lists containing this project

README

        

# YAML Selector

YAML variable selector for PHP. It support deep level selection and variable replacements.

## Project details

* Author: Tom de Bruijn - Newanz.com ()
* Version: 0.0.8
* More details at:

## Requirements

* PHP: Version 5.3+
* PHP Spyc library (included)

## Installation

* Download/Unpack the YAML-Selector project.
* Move the "yaml_selector" directory to your project.
* Prepare a YAML file. Tutorial:
* In your PHP project use the following code:
* Code:

get("keyname");
echo $yaml->get("firstlevel.secondlevel");
echo $yaml->get("variable.one","your name");
echo $yaml->get("variable.two",array("name"=>"your name","someinfo"=>"Another variable"));