Simple stateless configuration manager
Supported formats: PHP
, JSON
and INI
.
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");