kcmerrill / config
此包最新版本(dev-master)没有可用的许可证信息。
一个简单而有效的配置类
dev-master
2015-08-29 05:17 UTC
Requires
- symfony/yaml: 2.8.*@dev
This package is not auto-updated.
Last update: 2024-09-28 13:27:09 UTC
README
一个超级简单但强大的配置类。以多种方式组织设置。外部文件或通过数组访问。
//.config file within /config/ [db] user_name = 'root'; password = 'password' // ... $app_config = new kcmerrill\utility\config(__DIR__ . '/config/'); $app_config->set('php.hello.world', 'hello_world!'); echo $app_config['db']['user_name'] . ' is my db username configuration!'; echo $app_config->c('whatever.you.set') . ' is my configuration!'; echo $app_config->c('php.hello.world') . ' is my configuration!';