Simple YML parser and emitter.
- php 7.2+
Clone repository to the common place:
git clone [email protected]:PetrVakulenko/SimpleYaml.git ~/code/SimpleYaml/
$parser = new SimpleYaml\Parser();
$parser->parseFile(__DIR__ . '/../tmp/test.yml');
$array = $parser->getYamlObject()->getDataWithAliases();
$array = $parser->getYamlObject()->getDataWithoutAliases();
$array = $parser->getYamlObject()->getAliases();
$yaml = $parser->getYamlObject();
$emitter = new SimpleYaml\Emitter($yaml);
$string = $emitter->emit();