Documentation - Config PHP
$ composer require dframe/config
use Dframe\Config\Config;
include_once 'vendor/autoload.php';
$configPath = __DIR__. DIRECTORY_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
Open-sourced software licensed under the MIT license