nerd-components/config

简单的无状态配置管理器

v0.1.2 2016-10-08 20:14 UTC

This package is not auto-updated.

Last update: 2024-09-18 19:23:29 UTC


README

Build Status Coverage Status StyleCI

简单的无状态配置管理器

格式

支持格式:PHPJSONINI

用法

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");