chornij/yii2-slack
最新稳定版本:1.0.1
Composer 安装命令:
composer require chornij/yii2-slack
包简介
Simple Slack notifier
关键字:
README 文档
README
Simple Slack notifier
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist chornij/yii2-slack "~1.0"
or add
"chornij/yii2-slack": "~1.0"
to the require section of your composer.json file.
Usage
To use Slack you need to set up Slack component:
'components' => [ 'slack' => [ 'class' => 'chornij\slack\Client', 'url' => 'https://hooks.slack.com/services/T00000000/B00000000/PS0000000000000000000000', 'username' => 'My app backend', ], ],
You can also use it for logging:
'components' => [ 'log' => [ 'targets' => [ 'slack-errors' => [ 'class' => 'chornij\slack\log\SlackTarget', 'levels' => ['error'], 'emoji' => ':monkey_face:', 'exportInterval' => 1, 'logVars' => [], ], ], ], ],
统计信息
- 总下载量: 7.89k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-20