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
Fabien Potencier fea6b79acd moved component and bridge unit tests to the src/ directory
This is the first step to make each Symfony Component and Bridge self-contained.
2012-03-29 08:37:22 +02:00
..
Exception fixed some phpdoc 2012-01-11 15:46:50 +01:00
Tests moved component and bridge unit tests to the src/ directory 2012-03-29 08:37:22 +02:00
composer.json Removed version field 2012-02-27 09:59:20 +01:00
Dumper.php change nested collection indentation from 2 to 4 2011-09-22 14:48:21 -07:00
Escaper.php removed empty lines/trailing spaces 2011-04-15 21:12:02 +02:00
Inline.php fixed CS 2011-12-18 14:42:59 +01:00
LICENSE Updated LICENSE files copyright 2012-02-22 10:10:37 +01:00
Parser.php optimized string starts with checks 2012-01-11 11:33:56 -08:00
phpunit.xml.dist moved component and bridge unit tests to the src/ directory 2012-03-29 08:37:22 +02:00
README.md moved component and bridge unit tests to the src/ directory 2012-03-29 08:37:22 +02:00
Unescaper.php fixed CS 2011-06-08 12:12:55 +02:00
Yaml.php merged 2.0 2012-01-16 07:44:08 +01:00

Yaml Component

YAML implements most of the YAML 1.2 specification.

use Symfony\Component\Yaml\Yaml;

$array = Yaml::parse($file);

print Yaml::dump($array);

Resources

You can run the unit tests with the following command:

phpunit -c src/Symfony/Component/Yaml/