Bachir Soussi Chiadmi ad38015ea9 first commit : grave core and admin plugin | 9 years ago | |
---|---|---|
.. | ||
Exception | 9 years ago | |
Tests | 9 years ago | |
CHANGELOG.md | 9 years ago | |
Dumper.php | 9 years ago | |
Escaper.php | 9 years ago | |
Inline.php | 9 years ago | |
LICENSE | 9 years ago | |
Parser.php | 9 years ago | |
README.md | 9 years ago | |
Unescaper.php | 9 years ago | |
Yaml.php | 9 years ago | |
composer.json | 9 years ago | |
phpunit.xml.dist | 9 years ago |
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);
You can run the unit tests with the following command:
$ cd path/to/Symfony/Component/Yaml/
$ composer install
$ phpunit