[READ-ONLY] Subtree split of the Symfony YAML Component -- clone into Symfony/Component/ (master at symfony/symfony)
PHP
Pull request Compare This branch is 804 commits ahead, 685 commits behind symfony:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Exception
Tests
.gitignore
CHANGELOG.md
Dumper.php
Escaper.php
Inline.php
LICENSE
Parser.php
README.md
Unescaper.php
Yaml.php
composer.json
phpunit.xml.dist

README.md

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