Parse YAML
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
Obsolete
There is no longer a need for this bridge module. If your project need a Yaml parser, you should use the Symfony Yaml Component instead.
To use it, make Composer Manager a dependency of your project and have something like this in your project's composer.json:
{
"require": {
"symfony/yaml": ">=3.1"
}
}
When your project is enabled with drush, the Symfony Yaml call will be automatically downloaded from Packagist and installed below your vendor directory by Composer Manager.
This is a tiny bridge module that implements an API function (named parse_yaml_stream) that tries to parse a YAML stream.
To use the Symfony Yaml class for parsing, replace calls to parse_yaml_stream($data) with Yaml::parse($data);.
Synposis
The module relies on one of two external resources for the actual parsing. If a PHP function named yaml_parse is available (part of php-pecl-yaml), it will use that. If a function named spyc_load is available (part of a php YAML library called Spyc), it will use that. If neither is available, the API function will return FALSE.
