PHP code example of nvanheuverzwijn / php-config-yaml

1. Go to this page and download the library: Download nvanheuverzwijn/php-config-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/ */

    

nvanheuverzwijn / php-config-yaml example snippets


$reader = new Yaml\Reader([
    'file' => '/some/file.yml',
    'yaml_parser' => '\Symfony\Component\Yaml\Yaml::parse'
]);
$array = $reader->fetchAll();