Bachir Soussi Chiadmi 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 years ago
..
Exception 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 years ago
Tests 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 years ago
CHANGELOG.md 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 years ago
Dumper.php 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 years ago
Escaper.php 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 years ago
Inline.php 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 years ago
LICENSE 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 years ago
Parser.php 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 years ago
README.md 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 years ago
Unescaper.php 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 years ago
Yaml.php 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 years ago
composer.json 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 years ago
phpunit.xml.dist 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 years ago

README.md

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