Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexeevdv/yii2-mailgun-mailer
Yii2 mailer implementation that send mails via mailgun.com
https://github.com/alexeevdv/yii2-mailgun-mailer
mailgun yii2 yii2-extension yii2-mailer
Last synced: 29 days ago
JSON representation
Yii2 mailer implementation that send mails via mailgun.com
- Host: GitHub
- URL: https://github.com/alexeevdv/yii2-mailgun-mailer
- Owner: alexeevdv
- License: mit
- Created: 2018-02-25T06:04:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-02-25T09:44:19.000Z (over 6 years ago)
- Last Synced: 2024-04-27T01:41:05.824Z (7 months ago)
- Topics: mailgun, yii2, yii2-extension, yii2-mailer
- Language: PHP
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yii2-mailgun-mailer
[![Build Status](https://travis-ci.org/alexeevdv/yii2-mailgun-mailer.svg?branch=master)](https://travis-ci.org/alexeevdv/yii2-mailgun-mailer)
[![codecov](https://codecov.io/gh/alexeevdv/yii2-mailgun-mailer/branch/master/graph/badge.svg)](https://codecov.io/gh/alexeevdv/yii2-mailgun-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 via mailgun.com
## Installation
The preferred way to install this extension is through [composer](https://getcomposer.org/download/).
Either run
```bash
$ php composer.phar require alexeevdv/yii2-mailgun-mailer "~1.0"
```or add
```
"alexeevdv/yii2-mailgun-mailer": "~1.0"
```to the ```require``` section of your `composer.json` file.
## Configuration
### Through application component
```php
use alexeevdv\mailer\MailgunMailer;//...
'components' => [
//...
'mailer' => [
'class' => MailgunMailer::class,
'apiKey' => 'YOUR_API_KEY',
'domain' => 'your-domain.tld',
],
//...
],
//...
```