indielab/yii2-slack
最新稳定版本:1.1.0
Composer 安装命令:
composer require indielab/yii2-slack
包简介
Yii Post Message to Slack Channel
README 文档
README
Post a message to a Slack Channel. Pedefined functions to enable coloring.
Setup
Add the indielab/yii2-slack package to your composer.json
composer require indielab/yii2-slack
Add the component to your config in the components section:
'components' => [ // ... 'slack' => [ 'class' => 'Indielab\Slack\Client', 'token' => 'xoxp-1234567891-1234567891-1234567891', 'channel' => 'indielab', 'username' => 'Slack Bot', ] ]
Using in your Application:
Yii::$app->slack->message('Just a Message')->send();
Send colorized Messages:
Yii::$app->slack->danger('Very dangerous!')->send();
- danger
- warning
- success
统计信息
- 总下载量: 11.02k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2017-04-20