YAML Parser
Categories
Component ID
2928115
Component name
YAML Parser
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
15
Component created
Component changed
Component body
Yaml parser
This module will add the spyc-library and provide a simple API to parse YAML from strings or files. It is an api-only module and has no UI. Other modules will depend on this one.
Installation
Copy the modules in sites/all/modules/contrib as usual
Download the spyc-library from https://github.com/mustangostang/spyc and place it into sites/all/modules/libraries
Usage
To parse YAML from a string use the function yaml_parser_parse_string($string)
To parse a YAML-file use the function yaml_parser_parse_file($filename)