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
2012-06-13 14:57:32 +02:00
..
Exception fixed some phpdoc 2012-01-11 15:46:50 +01:00
Tests [Yaml] fixed string parsing (closes #4561) 2012-06-13 14:57:32 +02:00
CHANGELOG.md [Yaml] added CHANGELOG 2012-04-26 19:44:03 +02:00
composer.json updated minimum PHP version to 5.3.3 2012-05-07 10:29:11 +02:00
Dumper.php fixed phpdoc @param alignment 2012-05-15 22:19:31 +02:00
Escaper.php removed empty lines/trailing spaces 2011-04-15 21:12:02 +02:00
Inline.php [Yaml] fixed string parsing (closes #4561) 2012-06-13 14:57:32 +02:00
LICENSE Updated LICENSE files copyright 2012-02-22 10:10:37 +01:00
Parser.php fixed phpdoc @param alignment 2012-05-15 22:19:31 +02: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 switched to use mbstring whenever possible instead of iconv 2012-05-12 10:17:30 +02:00
Yaml.php fixed phpdoc @param alignment 2012-05-15 22:19:31 +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:

phpunit