dframe/config

Config component Dframe

v4.2.0 2022-10-28 13:54 UTC

This package is auto-updated.

Last update: 2024-11-28 16:49:59 UTC


README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

php framework dframe logo

Documentation - Config PHP

Composer

$ composer require dframe/config

Standalone

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

License

Open-sourced software licensed under the MIT license