PHP code example of lezhnev74 / dummy-config-loader

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

    

lezhnev74 / dummy-config-loader example snippets


$config = new DummyConfigLoader\Config(__DIR__); // this will look for config files in this folder
$value = $config->get('database.default.driver', 'mongodb');

return [
    "default" => [
        "driver" => "mariadb"
    ]
];