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-10-12 13:16:35 +02:00
..
Exception remove api tags from code 2015-09-28 19:11:22 +02:00
Tests [Yaml] deprecated non-escaped \ in double-quoted strings when parsing 2015-10-12 12:20:37 +02:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
CHANGELOG.md [Yaml] deprecated non-escaped \ in double-quoted strings when parsing 2015-10-12 12:20:37 +02:00
composer.json Merge branch '2.7' into 2.8 2015-10-10 11:36:22 +02:00
Dumper.php Docblock fixes 2014-11-30 13:33:44 +00:00
Escaper.php [Yaml] marked some classes as being internal 2015-10-12 13:16:35 +02:00
Inline.php [Yaml] marked some classes as being internal 2015-10-12 13:16:35 +02:00
LICENSE Updated copyright to 2015 2015-01-01 13:56:52 +01:00
Parser.php Merge branch '2.3' into 2.7 2015-10-02 14:36:41 +02:00
phpunit.xml.dist [PhpUnit] Auto-register SymfonyTestsListener 2015-10-11 10:29:26 +02:00
README.md renamed composer.phar to composer to be consistent with the Symfony docs 2015-02-08 08:41:14 +01:00
Unescaper.php [Yaml] marked some classes as being internal 2015-10-12 13:16:35 +02:00
Yaml.php Merge branch '2.3' into 2.7 2015-09-29 14:06:14 +02:00

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