PHP code example of mhndev / config
1. Go to this page and download the library: Download mhndev/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/ */
mhndev / config example snippets
use Noodlehaus\Config;
// Load all supported files in a directory
$conf = new Config(__DIR__ . '/config');
return [
'driver'=>'file'
];
// Get value using key
$debug = $conf->get('mail.driver');