PHPackages                             yarcode/yii2-async-mailer - 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. yarcode/yii2-async-mailer

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

yarcode/yii2-async-mailer
=========================

Async mailer decorator for Yii2

0.4(8y ago)71.1k8[1 issues](https://github.com/yarcode/yii2-async-mailer/issues)MITPHP

Since Jul 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/yarcode/yii2-async-mailer)[ Packagist](https://packagist.org/packages/yarcode/yii2-async-mailer)[ Docs](http://packagist.org/packages/yarcode/yii2-async-mailer)[ RSS](/packages/yarcode-yii2-async-mailer/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

yarcode/yii2-async-mailer
=========================

[](#yarcodeyii2-async-mailer)

Async mailer decorator for Yii2

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist yarcode/yii2-async-mailer

```

or add

```
"yarcode/yii2-async-mailer": "*"
```

Usage
-----

[](#usage)

Configure `async` component of your application. You can find the details here:

Configure `YarCode\Yii2\AsyncMailer\Mailer` as your primary mailer.

```
  'mailer' => [
      'class' => '\YarCode\Yii2\AsyncMailer\Mailer',
      'syncMailer' => [
          'class' => 'yii\swiftmailer\Mailer',
          'useFileTransport' => true,
      ],
  ],

```

Add mailer command to the console config file.

```
  'controllerMap' => [
      'mailer' => [
          'class' => '\YarCode\Yii2\AsyncMailer\MailerCommand',
      ],
  ],

```

Run the mailer daemon in the background.

```
yii mailer/daemon

```

Now you can send your emails as usual.

```
$message = \Yii::$app->mailer->compose()
  ->setSubject('test subject')
  ->setFrom('test@example.org')
  ->setHtmlBody('test body')
  ->setTo('user@example.org');

\Yii::$app->mailer->send($message);

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity56

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 ~163 days

Total

4

Last Release

3136d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1297270?v=4)[Vahid G](/maintainers/lagman)[@lagman](https://github.com/lagman)

---

Top Contributors

[![grptx](https://avatars.githubusercontent.com/u/6595328?v=4)](https://github.com/grptx "grptx (5 commits)")[![metalagman](https://avatars.githubusercontent.com/u/1983796?v=4)](https://github.com/metalagman "metalagman (2 commits)")

---

Tags

asyncqueuemaileryii2

### Embed Badge

![Health badge](/badges/yarcode-yii2-async-mailer/health.svg)

```
[![Health](https://phpackages.com/badges/yarcode-yii2-async-mailer/health.svg)](https://phpackages.com/packages/yarcode-yii2-async-mailer)
```

###  Alternatives

[yarcode/yii2-queue-mailer

Queue mailer decorator for Yii2 framework

1019.4k](/packages/yarcode-yii2-queue-mailer)[nterms/yii2-mailqueue

Email queue component for yii2 that works with yii2-swiftmailer.

84133.5k2](/packages/nterms-yii2-mailqueue)[nickcv/yii2-mandrill

Mandrill Api Integration for Yii2

29570.2k2](/packages/nickcv-yii2-mandrill)[yarcode/yii2-mailgun-mailer

Mailgun mailer implementation for Yii2

1576.5k](/packages/yarcode-yii2-mailgun-mailer)[rmrevin/yii2-postman

Mail module for Yii2.

2612.3k](/packages/rmrevin-yii2-postman)

PHPackages © 2026

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