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 aed787878f Merge branch '2.5' into 2.6
* 2.5:
  [PropertyAccessor] Added test to allow null value for a array
  [Yaml] Fixed #10597: Improved Yaml directive parsing
  [Form] Set a child type to text if added to the form without a type.
2015-01-09 19:07:16 +01:00
..
Exception Docblock fixes 2014-11-30 13:33:44 +00:00
Tests Merge branch '2.5' into 2.6 2015-01-09 19:07:16 +01:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
CHANGELOG.md [Yaml] added CHANGELOG 2012-04-26 19:44:03 +02:00
composer.json updated version to 2.6 2014-05-23 16:36:49 +02:00
Dumper.php Docblock fixes 2014-11-30 13:33:44 +00:00
Escaper.php Docblock fixes 2014-11-30 13:33:44 +00:00
Inline.php Merge branch '2.5' into 2.6 2014-12-30 10:04:52 +01:00
LICENSE Updated copyright to 2015 2015-01-01 13:56:52 +01:00
Parser.php Merge branch '2.5' into 2.6 2015-01-09 19:07:16 +01:00
phpunit.xml.dist [Tests] Silenced all deprecations in tests for 2.3 2014-12-18 20:00:19 +01:00
README.md [Yaml] Update README.md 2015-01-03 11:53:56 +01:00
Unescaper.php [2.3] CS And DocBlock Fixes 2014-12-22 16:58:09 +01:00
Yaml.php Docblock fixes 2014-11-30 13:33:44 +00: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.phar install
$ phpunit