Skip to content

nerd-framework/config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Config

Build Status Coverage Status StyleCI

Simple stateless configuration manager

Formats

Supported formats: PHP, JSON and INI.

Usage

use Kote\Config;

$config = Config\getConfig("/path/to/config", Config\Formats\JSON);

$someKey = Config\getValue($config, "config1.someKey", defaultValue);
$key = Config\getValue($config, "other.key");
$token = Config\getValue($config, "app.token");