PHP code example of bzick / confd

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

    

bzick / confd example snippets



$config = new Confd\Config("path/to/custom.config.php", "path/to/defaults/");


$config->part->key;
$config->part['key'];
$config['part']['key'];

$config->getItem("part", "key");