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
2015-01-09 07:51:41 +01:00
..
Exception Docblock fixes 2014-11-30 13:33:44 +00:00
Tests added missing error_reporting 2015-01-08 13:57:51 +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 bumped min PHP version to 5.3.9 2015-01-09 07:51:41 +01: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 2014-12-22 17:44:09 +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 [Yaml] removed deprecation notices on internal constant 2015-01-08 12:18:11 +01:00
Yaml.php Fixes more deprecation notices as per @stof review. 2015-01-05 16:02:28 +01: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