PHPackages                             jsoma/mailerqueue - 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. jsoma/mailerqueue

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

jsoma/mailerqueue
=================

The Async mailer for the Yii framework

06PHP

Since Nov 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/TanChungui/yii2_redis_mailerqueue)[ Packagist](https://packagist.org/packages/jsoma/mailerqueue)[ RSS](/packages/jsoma-mailerqueue/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2\_redis\_mailerqueue
========================

[](#yii2_redis_mailerqueue)

yii2 redis async mailer

基于 Redis的邮件异步发送工具

1.config.php

'aliases' =&gt; \[ '@jsoma/mailer'=&gt;'@vendor/jsoma/mailerqueue/src' \],

'components' =&gt; \[ ... 'redis' =&gt; \[ 'class' =&gt; 'yii\\redis\\Connection', 'hostname' =&gt; 'localhost', // ip/127.0.0.1 'port' =&gt; 6379, 'database' =&gt; 0, \],

```
   ...

    'mailer' => [
        //redis 发送邮件
         'class' => 'jsoma\mailer\MailerQueue',
         'db' => '1', // redis select 1
         'key' => 'mails', // redis key
        'useFileTransport' => false,
        'transport' => [
            'class' => 'Swift_SmtpTransport',
            'host' => 'smtp.163.com',
            'username' => 'xxx@163.com',
            'password' => 'xxx',
            'port' => '465',
            'encryption' => 'ssl',
        ],
    ],
],

```

2. mail to redis

    $mailer = Yii::$app-&gt;mailer-&gt;compose($template, $param=\[\]);//邮件体 $mailer-&gt;setFrom(''); //发件人 $mailer-&gt;setTo(''); // 收件人 $mailer-&gt;setSubject('xxx'); // 邮件标题 //if ($mailer-&gt;send()) { // if ($mailer-&gt;queue()) { // redis 发送 return true; }else{ return false; }
3. Send mail by redis ( linux crontab 定时脚本)

    $mailer = new \\jsoma\\mailer\\MailerQueue(); $mailer-&gt;process();

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9277956?v=4)[tanchungui](/maintainers/TanChungui)[@TanChungui](https://github.com/TanChungui)

---

Top Contributors

[![TanChungui](https://avatars.githubusercontent.com/u/9277956?v=4)](https://github.com/TanChungui "TanChungui (5 commits)")

### Embed Badge

![Health badge](/badges/jsoma-mailerqueue/health.svg)

```
[![Health](https://phpackages.com/badges/jsoma-mailerqueue/health.svg)](https://phpackages.com/packages/jsoma-mailerqueue)
```

###  Alternatives

[mattketmo/email-checker

Throwaway email detection library

2752.1M5](/packages/mattketmo-email-checker)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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