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
Fabien Potencier 990267f959 Merge branch '2.3' into 2.4
* 2.3:
  Fixed mistake in upgrade docu
  Container::camelize also takes backslashes into consideration
  fixed typos
  fixed @expectedException class names
  fixed some typos
  fixed @expectedException class names
  Typo and better wording for german validator translation
2013-11-26 17:40:27 +01:00
..
Exception fixed PHP 5.3 compatibility 2013-09-19 18:27:31 +02:00
Tests Merge branch '2.3' into 2.4 2013-11-26 17:40:27 +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 updated version to 2.4 2013-05-16 09:54:39 +02:00
Dumper.php Merge branch '2.1' 2013-01-17 22:22:20 +01:00
Escaper.php [Yaml] Fixed the escaping of strings starting with a dash when dumping 2013-10-11 00:23:27 +02:00
Inline.php Merge branch '2.1' into 2.2 2013-03-06 18:38:49 +01:00
LICENSE updated license year 2013-01-04 17:59:43 +01:00
Parser.php Merge branch '2.2' into 2.3 2013-08-24 17:26:22 +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 updated the composer install command to reflect changes in Composer 2013-09-18 09:27:26 +02:00
Unescaper.php Fix some annotates 2013-09-19 11:36:05 +02:00
Yaml.php Fixed PHPDocs 2013-04-21 12:26:17 +00: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
$ phpunit