Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.This project is not covered by Drupal’s security advisory policy.
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.
Project information
Unsupported
Not supported (i.e. abandoned), and no longer being developed. Learn more about dealing with unsupported (abandoned) projectsObsolete
Use of this project is deprecated.- Project categories: Developer tools
1 site reports using this module
- Created by gisle on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
