simplydi/simplyconfig
Composer 安装命令:
composer require simplydi/simplyconfig
包简介
A very simple configuration component for any app using yaml files
README 文档
README
A verify simple configuration component using Yaml files
Usage
Your YAML file: settings.yaml
app: name: It works timezone: UTC otherConfig: this thing works too
In your app:
// init the class and pass the path to yaml file $config = new \SimplyDi\SimplyConfig\Config("/path/to/settings.yaml"); // can use dot notation $appName = $config->get('app.name'); echo $appName; // prints "It works" echo $config->get('otherConfig'); // prints "this thing works too"
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-08-04