alexeevdv/yii2-slack-mailer
最新稳定版本:2.0.0
Composer 安装命令:
composer require alexeevdv/yii2-slack-mailer
包简介
README 文档
README
Yii2 mailer implementation that send mails to specified webhook.
Installation
The preferred way to install this extension is through composer.
Either run
$ php composer.phar require alexeevdv/yii2-slack-mailer "~2.0"
or add
"alexeevdv/yii2-slack-mailer": "~2.0"
to the require section of your composer.json file.
Configuration
Through application component
use alexeevdv\yii\SlackMailer; //... 'components' => [ //... 'mailer' => [ 'class' => SlackMailer::class, 'webhook' => 'https://your_webhook_link', ], //... ], //...
Available params
-
webhook
- description: Your webhook URL
- required: true
- type: string
-
icon
- description: :emoji: or URL to image
- required: false
- type: string
-
channel
- description: Channel name
- required: false
- type: string
-
username
- description: Bot name
- required: false
- type: string
-
link_names
- required: false
- type: boolean
- default: false
-
unfurl_links
- required: false
- type: boolean
- default: true
-
unfurl_media
- required: false
- type: boolean
- default: true
-
allow_markdown
- required: false
- type: boolean
- default: true
统计信息
- 总下载量: 967
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-08
