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
2013-04-12 16:27:36 +06:00
..
Exception fixed some phpdoc 2012-01-11 15:46:50 +01:00
Tests [Yaml] fixed handling an empty value 2013-04-12 16:19:23 +06:00
CHANGELOG.md [Yaml] added CHANGELOG 2012-04-26 19:44:03 +02:00
composer.json Removed useless branch alias for dev-master in composer.json 2012-12-06 11:00:55 +01:00
Dumper.php Merge branch '2.0' into 2.1 2013-01-17 22:21:51 +01:00
Escaper.php merged branch jakzal/yamlDoubleQuotesDumperFix (PR #4320) 2012-10-29 12:15:41 +01:00
Inline.php remove dead code in yaml component 2013-03-06 18:01:03 +01:00
LICENSE updated license year 2013-01-04 17:59:43 +01:00
Parser.php [Yaml] improved boolean naming ($notEOF -> !$EOF) 2013-04-12 16:27:36 +06:00
phpunit.xml.dist [Components] Tests/Autoloading fixes 2012-05-01 17:51:41 +02:00
README.md [Components] Tests/Autoloading fixes 2012-05-01 17:51:41 +02:00
Unescaper.php fixed CS 2012-07-09 14:54:20 +02:00
Yaml.php [Yaml] fixed wrong merge (indentation default is 4 as of 2.1) 2013-01-27 17:12:43 +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