PHP code example of keiii / silex-yaml-config

1. Go to this page and download the library: Download keiii/silex-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 / silex-yaml-config example snippets



$app->register(new \KEIII\YamlConfigServiceProvider\YamlConfigServiceProvider(), [
    'config.path' => __DIR__.'/config',
    // 'config.cache_path' => '/var/tmp',
    // 'config.replacements' => ['root_path' => __DIR__],
    // 'config.env' => 'dev',
    // 'config.index' => 'config.yml',
    // 'config.loader' => LoaderInterface,
]);
$app['config']['key']; // value;