Open-Source PHP Framework - Designed for rapid development of performance-oriented scalable applications

App Directory >> Symfony2 YAML by Asvin BallooAsvin Balloo

Download this App

package
symfony2yaml
version
1.0.0
license
MIT (X11)

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
:
  
age27
  location
'New York'


App Files