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-09-06 20:45:30 +02:00
..
Exception fixed some phpdoc 2012-01-11 15:46:50 +01:00
Tests fixed CS 2012-07-09 14:54:20 +02:00
CHANGELOG.md [Yaml] added CHANGELOG 2012-04-26 19:44:03 +02:00
composer.json udpated composer.json to 2.2 2012-09-06 20:45:30 +02:00
Dumper.php Force the value of Dumper::setIndentation($num) to be of type integer. 2012-08-07 09:40:56 +02:00
Escaper.php fixed CS 2012-07-09 14:54:20 +02:00
Inline.php fixed CS 2012-07-09 14:54:20 +02:00
LICENSE Updated LICENSE files copyright 2012-02-22 10:10:37 +01:00
Parser.php [Yaml] fixed parsing when a mapping is mixed within a sequence and vice-versa (closes #4634) 2012-07-01 11:19:53 +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 fixed CS 2012-07-09 14:54:20 +02:00
Yaml.php Added Yaml\Dumper::setIndentation() method to allow a custom indentation level of nested nodes. 2012-08-05 08:07:18 +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