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

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

accessd/yii2-async-mailer
=========================

Async mailer decorator for Yii2

1.0.1(3y ago)02.2kMITPHP

Since Jan 12Pushed 1y agoCompare

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

READMEChangelogDependencies (4)Versions (3)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

27

—

LowBetter than 49% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

1216d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/517aae4026f04d2ffeead71e989baa9e75d1f398725a937df88632fa0ba41561?d=identicon)[error-feature](/maintainers/error-feature)

---

Top Contributors

[![grptx](https://avatars.githubusercontent.com/u/6595328?v=4)](https://github.com/grptx "grptx (5 commits)")[![accessd](https://avatars.githubusercontent.com/u/592430?v=4)](https://github.com/accessd "accessd (3 commits)")[![metalagman](https://avatars.githubusercontent.com/u/1983796?v=4)](https://github.com/metalagman "metalagman (2 commits)")[![mitmx](https://avatars.githubusercontent.com/u/37775171?v=4)](https://github.com/mitmx "mitmx (2 commits)")[![deffault](https://avatars.githubusercontent.com/u/44925069?v=4)](https://github.com/deffault "deffault (1 commits)")[![Ja-D0](https://avatars.githubusercontent.com/u/127515726?v=4)](https://github.com/Ja-D0 "Ja-D0 (1 commits)")

---

Tags

asyncqueuemaileryii2

### Embed Badge

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

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

###  Alternatives

[yarcode/yii2-queue-mailer

Queue mailer decorator for Yii2 framework

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

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

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

Mandrill Api Integration for Yii2

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

Mailgun mailer implementation for Yii2

1576.0k](/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)
