App Directory >> Symfony2 YAML by Asvin Balloo
Symfony2 YAML
This is the Symfony YAML component, converted from the Symfony Framework to Vork.Example to load an yml file in an array:
$ymlData = get::component('yaml')->load('/path/to/yml/file.yml');
Example to output YAML from a PHP array:
echo get::component('yaml')->dump(
array(
'name' => 'my name',
'meta' => array(
'age' => 27,
'location' => 'New York'
)
)
);
Will output:
name: my name
meta:
age: 27
location: 'New York'
App Files
- mvc
- components