buibr/yii2-config
Composer 安装命令:
composer require buibr/yii2-config
包简介
Yii2 Config file for params.
关键字:
README 文档
README
Description
It was nightmare for me to use the Yii:$app->params[xxx], and i create ad Config class to do this.
Installation
The preferred way to install this extension is through composer.
To install, either run
$ composer require buibr/yii2config "*"
or add
$ "buibr/yii2config":"*"
to the `require` section of your composer.json file.
Usage
Example if the `params.php` contains this:
...
'mail'=>[
...
'contact' => 'buibr@....',
'from_name' => 'Marketing Team',
...
]
...
then:
Config::param('mail.contact');
For every `.` means sub element of array in the params.
If this elemet is not found will be returned false.
License
buibr/yii2config is released under the MIT License. See the bundled LICENSE for details.
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-08-31