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 b0b2ddcfe8 Merge branch '3.0'
* 3.0:
  [Form] [ChoiceType] Prefer placeholder to empty_value
  Add missing RFC comment
  ensure dump indentation to be greather than zero
2016-03-02 11:23:16 +01:00
..
Exception Merge branch '2.8' 2015-09-29 16:08:28 +02:00
Tests Merge branch '3.0' 2016-03-02 11:23:16 +01:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
CHANGELOG.md option to dump multi line strings as scalar blocks 2016-03-01 18:09:14 +01:00
composer.json updated version to 3.1 2015-11-30 22:39:17 +01:00
Dumper.php Merge branch '3.0' 2016-03-02 11:23:16 +01:00
Escaper.php Merge branch '2.7' into 2.8 2016-01-21 10:05:51 +01:00
Inline.php feature #17728 [Yaml] add option to dump objects as maps (xabbuh) 2016-02-28 11:09:55 +01:00
LICENSE Update copyright year 2016-01-01 23:53:47 -03:00
Parser.php [Yaml] add support for the !!binary tag 2016-02-27 17:28:09 +01:00
phpunit.xml.dist Add missing exclusions from phpunit.xml.dist 2015-11-18 09:19:46 +01:00
README.md renamed composer.phar to composer to be consistent with the Symfony docs 2015-02-08 08:41:14 +01:00
Unescaper.php Merge branch '2.8' into 3.0 2016-01-21 10:38:31 +01:00
Yaml.php Merge branch '2.8' into 3.0 2016-03-02 11:18:25 +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 install
$ phpunit