dframe/config

Config component Dframe

v4.1.8 2022-01-30 11:34 UTC

This package is auto-updated.

Last update: 2024-02-28 15:08:41 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