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
2014-11-29 13:40:43 +01:00
..
Exception compare version using PHP_VERSION_ID 2014-11-17 17:27:42 +01:00
Tests Merge branch '2.5' into 2.6 2014-11-20 14:24:23 +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.7 2014-11-10 19:00:54 +01:00
Dumper.php fixed types in phpdocs 2014-04-16 12:30:19 +02:00
Escaper.php Remove aligned '=>' and '=' 2014-10-26 08:30:58 +01:00
Inline.php [Yaml] Ensure whole number floats have their data type is persisted. 2014-10-05 15:53:47 +02:00
LICENSE update year on licenses 2014-01-07 08:19:25 -05:00
Parser.php Merge branch '2.5' 2014-11-03 04:55:50 +01:00
phpunit.xml.dist Adjust error_reporting to allow deprecation messages for 3.0 2014-11-29 13:40:43 +01:00
README.md [Doc] Use Markdown syntax highlighting 2014-10-01 07:38:33 +02:00
Unescaper.php fixed CS 2014-09-22 10:32:35 +02:00
Yaml.php made phpdoc types consistent with those defined in Hack 2014-04-15 07:41:45 +02: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:

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