Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/tombruijn/yaml-selector
- Owner: tombruijn
- Created: 2010-06-03T18:21:43.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-06-11T17:24:05.000Z (over 14 years ago)
- Last Synced: 2024-12-12T23:07:58.558Z (19 days ago)
- Language: PHP
- Homepage:
- Size: 99.6 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"));