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-12-12 11:54:56 +01:00
..
Exception [Yaml] Normalize exceptions 2012-08-30 21:55:18 +02:00
Tests [Yaml] Add test showing that dates before 01 Jan 1970 are correctly parsed 2012-12-12 11:54:56 +01:00
.gitattributes Fix export-ignore on Windows 2012-11-08 10:51:48 +01:00
.gitignore made usage of Composer autoloader for subtree-split unit tests 2012-11-09 14:10:06 +01:00
CHANGELOG.md [Yaml] added CHANGELOG 2012-04-26 19:44:03 +02:00
composer.json Optimize autoload prefix in composer.json 2012-09-28 09:34:16 +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 merged branch jakzal/yamlDoubleQuotesDumperFix (PR #4320) 2012-10-29 12:15:41 +01: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 Nsdocblocks 2012-10-20 09:10:30 +02:00
phpunit.xml.dist made usage of Composer autoloader for subtree-split unit tests 2012-11-09 14:10:06 +01:00
README.md made usage of Composer autoloader for subtree-split unit tests 2012-11-09 14:10:06 +01:00
Unescaper.php [Yaml] Normalize exceptions 2012-08-30 21:55:18 +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:

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