PHP code example of keiii / yaml-config
1. Go to this page and download the library: Download keiii/yaml-config 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/ */
keiii / yaml-config example snippets
$loader = \KEIII\YamlConfig\Factory::create(
__DIR__.'/config', // configs path
['key' => 'value'], // replacements
__DIR__.'/var/cache' // cache path or false
);
$config = $loader->load('config.env.yml'); // array