PHP code example of rawphp / raw-yaml
1. Go to this page and download the library: Download rawphp/raw-yaml library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rawphp / raw-yaml example snippets
use RawPHP\RawYaml\Yaml;
// new yaml parser instance
$yaml = new Yaml( );
// load yaml file
$array = $yaml->load( $file );
// save array to yaml
$yaml->save( $array, $file );