PHP code example of glynnforrest / speedy-config
1. Go to this page and download the library: Download glynnforrest/speedy-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/ */
glynnforrest / speedy-config example snippets
use SpeedyConfig\ConfigBuilder;
use SpeedyConfig\Loader\YamlLoader;
use SpeedyConfig\Loader\PhpLoader;
use SpeedyConfig\Processor\ReferenceProcessor;
$builder = new ConfigBuilder([new YamlLoader(), new PhpLoader()], new ReferenceProcessor());
$builder->addResource('config.php')
->addResource('config.yml');
$config = $builder->getConfig();
// instance of SpeedyConfig\Config