This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Yaml
2015-12-05 12:17:43 +01:00
..
Exception
Tests Improved error messages for Yaml Deprecations 2015-12-05 12:17:43 +01:00
.gitignore
CHANGELOG.md
composer.json
Dumper.php
Escaper.php
Inline.php Improved error messages for Yaml Deprecations 2015-12-05 12:17:43 +01:00
LICENSE
Parser.php Improved error messages for Yaml Deprecations 2015-12-05 12:17:43 +01:00
phpunit.xml.dist
README.md
Unescaper.php
Yaml.php

Yaml Component

YAML implements most of the YAML 1.2 specification.

use Symfony\Component\Yaml\Yaml;

$array = Yaml::parse(file_get_contents(filename));

print Yaml::dump($array);

Resources

You can run the unit tests with the following command:

$ cd path/to/Symfony/Component/Yaml/
$ composer install
$ phpunit