定制 chornij/yii2-slack 二次开发

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

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

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-04-20