|
há 10 anos atrás | |
---|---|---|
.. | ||
Exception | há 10 anos atrás | |
Tests | há 10 anos atrás | |
CHANGELOG.md | há 10 anos atrás | |
Dumper.php | há 10 anos atrás | |
Escaper.php | há 10 anos atrás | |
Inline.php | há 10 anos atrás | |
LICENSE | há 10 anos atrás | |
Parser.php | há 10 anos atrás | |
README.md | há 10 anos atrás | |
Unescaper.php | há 10 anos atrás | |
Yaml.php | há 10 anos atrás | |
composer.json | há 10 anos atrás | |
phpunit.xml.dist | há 10 anos atrás |
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