The Yaml loads and dumps YAML files.
History with a list of original committers/commits: shortlog.txt
use PhacMan\Yaml\Yaml;
$yaml = Yaml::parseFile('some.yaml');
print_r($yaml);
use PhacMan\Yaml\Yaml;
$array = [
'foo' => 'bar',
'bar' => ['foo' => 'bar', 'bar' => 'baz'],
];
$yaml = Yaml::dump($array);
file_put_contents('written.yaml', $yaml);
Usage details: here
- Original repository: https://github.com/symfony/yaml