sunhao fe08a6fbcc 初始 | лет назад: 5 | |
---|---|---|
.. | ||
Exception | лет назад: 5 | |
Tests | лет назад: 5 | |
.gitignore | лет назад: 5 | |
CHANGELOG.md | лет назад: 5 | |
Dumper.php | лет назад: 5 | |
Escaper.php | лет назад: 5 | |
Inline.php | лет назад: 5 | |
LICENSE | лет назад: 5 | |
Parser.php | лет назад: 5 | |
README.md | лет назад: 5 | |
Unescaper.php | лет назад: 5 | |
Yaml.php | лет назад: 5 | |
composer.json | лет назад: 5 | |
phpunit.xml.dist | лет назад: 5 |
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.phar install
$ phpunit