Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexeevdv/yii2-slack-mailer
Yii2 mailer implementation that send mails to specified webhook.
https://github.com/alexeevdv/yii2-slack-mailer
mailer slack yii2 yii2-mailer
Last synced: 16 days ago
JSON representation
Yii2 mailer implementation that send mails to specified webhook.
- Host: GitHub
- URL: https://github.com/alexeevdv/yii2-slack-mailer
- Owner: alexeevdv
- License: mit
- Created: 2018-02-08T14:24:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-16T05:28:47.000Z (over 6 years ago)
- Last Synced: 2024-05-17T13:20:33.041Z (6 months ago)
- Topics: mailer, slack, yii2, yii2-mailer
- Language: PHP
- Homepage:
- Size: 85 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
yii2-slack-mailer
=================
[![Build Status](https://travis-ci.org/alexeevdv/yii2-slack-mailer.svg?branch=master)](https://travis-ci.org/alexeevdv/yii2-slack-mailer)
[![codecov](https://codecov.io/gh/alexeevdv/yii2-slack-mailer/branch/master/graph/badge.svg)](https://codecov.io/gh/alexeevdv/yii2-slack-mailer)
![PHP 5.6](https://img.shields.io/badge/PHP-5.6-green.svg)
![PHP 7.0](https://img.shields.io/badge/PHP-7.0-green.svg)
![PHP 7.1](https://img.shields.io/badge/PHP-7.1-green.svg)
![PHP 7.2](https://img.shields.io/badge/PHP-7.2-green.svg)Yii2 mailer implementation that send mails to specified webhook.
![Preview](https://raw.githubusercontent.com/alexeevdv/yii2-slack-mailer/master/preview.jpg)
## Installation
The preferred way to install this extension is through [composer](https://getcomposer.org/download/).
Either run
```bash
$ 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
```php
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