PHP code example of dframe / config

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

    

dframe / config example snippets


use Dframe\Config\Config;

ECTORY_SEPARATOR . 'config'. DIRECTORY_SEPARATOR;

$config = Config::load('ConfigFile', $configPath);
$config->get('key1'); // Return value
$config->get('keyValid', 'yes'); // return 'yes' ||  if key does not exist then you can replace value