PHP code example of macfja / chain-config

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

    

macfja / chain-config example snippets


 ├── test1.ini.dist
 ├── test2.ini
 └── test2.ini.dist
 php
$config = new Config();
$config->appendPath(__DIR__ . DIRECTORY_SEPARATOR . 'config');
$config->appendReader(new IniReader());
 php
engine = $config->get('database.engine');