PHPackages                             newrow/yii2-mailgun - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. newrow/yii2-mailgun

ActiveYii2-extension[Mail &amp; Notifications](/categories/mail)

newrow/yii2-mailgun
===================

Mailgun integration for the Yii2 framework

v0.0.7(5y ago)12.0k1[1 PRs](https://github.com/nir100/yii2-mailgun/pulls)Apache-2.0PHP

Since May 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/nir100/yii2-mailgun)[ Packagist](https://packagist.org/packages/newrow/yii2-mailgun)[ RSS](/packages/newrow-yii2-mailgun/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (8)Used By (0)

Mailgun
=======

[](#mailgun)

Mailgun integration for the Yii framework

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist newrow/yii2-mailgun "*"

```

or add

```
"newrow/yii2-mailgun": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Configure it in the application configuration:

```
'components' => [
    ...
    'mailer' => [
        'class' => 'newrow\mailgun\Mailer',
        'key' => 'key-example',
        'domain' => 'mg.example.com',
    ],
    ...
],
```

To send an email, you may use the following code:

```
Yii::$app->mailer->compose('contact/html', ['contactForm' => $form])
    ->setFrom('from@domain.com')
    ->setTo($form->email)
    ->setSubject($form->subject)
    ->send();
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~313 days

Recently: every ~378 days

Total

7

Last Release

2186d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b848e1eeb9342880558926867e61925cdcf388e17494f31a8b5c2ad7cbc2224b?d=identicon)[nireli100](/maintainers/nireli100)

---

Top Contributors

[![mikejpeters](https://avatars.githubusercontent.com/u/3334654?v=4)](https://github.com/mikejpeters "mikejpeters (5 commits)")[![gattir](https://avatars.githubusercontent.com/u/9007655?v=4)](https://github.com/gattir "gattir (1 commits)")[![OllieDay](https://avatars.githubusercontent.com/u/9725880?v=4)](https://github.com/OllieDay "OllieDay (1 commits)")

---

Tags

mailemailmaileryii2extensionmailgunrackspace

### Embed Badge

![Health badge](/badges/newrow-yii2-mailgun/health.svg)

```
[![Health](https://phpackages.com/badges/newrow-yii2-mailgun/health.svg)](https://phpackages.com/packages/newrow-yii2-mailgun)
```

###  Alternatives

[boundstate/yii2-mailgun

Mailgun integration for the Yii framework

28165.8k](/packages/boundstate-yii2-mailgun)[yarcode/yii2-mailgun-mailer

Mailgun mailer implementation for Yii2

1576.5k](/packages/yarcode-yii2-mailgun-mailer)[djagya/yii2-sparkpost

A library provides Yii2 integration with SparkPost mail service

1816.4k](/packages/djagya-yii2-sparkpost)[tigrov/yii2-mailqueue

Yii2 mail queue component for yii2-swiftmailer.

196.4k](/packages/tigrov-yii2-mailqueue)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
