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