定制 indielab/yii2-slack 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2017-04-20