PHPackages                             dimichspb/yii2-mail-queue - 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. dimichspb/yii2-mail-queue

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

dimichspb/yii2-mail-queue
=========================

Yii2 mail queue component

0.0.6(8y ago)0231MITPHP

Since Feb 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/dimichspb/yii2-mail-queue)[ Packagist](https://packagist.org/packages/dimichspb/yii2-mail-queue)[ Docs](https://github.com/dimichspb/yii2-mail-queue)[ RSS](/packages/dimichspb-yii2-mail-queue/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (6)Versions (7)Used By (0)

yii2-mail-queue
===============

[](#yii2-mail-queue)

Yii2 Module to put mails into the queue. Module replaces `mailer` component.

1. Installation

```
composer require dimichspb/yii2-mail-queue

```

2. Configuration

add to config files `web.php`, `console.php` or `main.php` for advanced yii2 template

```
'components' => [
    'mailer' => [
        'class' => Mailer::className(),
        'mailerOptions' => [
            'useFileTransport' => true,
        ],
        'useFileTransport' => false,
    ],
    'queue' => [
        'class' => \yii\queue\file\Queue::class,
    ]
],

```

3. Usage

Use `mailer` component in common way

```
$this->app->mailer->compose('example')
    ->setFrom('from@domain.com')
    ->setTo('to@domain.com')
    ->setSubject('Test message subject')
    ->setTextBody('Test message plain body');
    ->send();

```

This will put your message into MailQueue. To process the queue use common queue run command:

```
yii queue/run

```

or use yii2 queue listener

```
yii queue/listen

```

4. Testing

```
phpunit

```

5. Have fun

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.2% 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 ~0 days

Total

6

Last Release

2992d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/33d9ac15f9c02e7c6a12e7f0598c362f7efc907a0cb174093a95f25014c3fdea?d=identicon)[dimichspb](/maintainers/dimichspb)

---

Top Contributors

[![dimichspb](https://avatars.githubusercontent.com/u/10393109?v=4)](https://github.com/dimichspb "dimichspb (25 commits)")[![Senegal](https://avatars.githubusercontent.com/u/670538?v=4)](https://github.com/Senegal "Senegal (1 commits)")

---

Tags

mailemailqueueyii2extension

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dimichspb-yii2-mail-queue/health.svg)

```
[![Health](https://phpackages.com/badges/dimichspb-yii2-mail-queue/health.svg)](https://phpackages.com/packages/dimichspb-yii2-mail-queue)
```

###  Alternatives

[nterms/yii2-mailqueue

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

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

Yii2 mail queue component for yii2-swiftmailer.

186.1k](/packages/tigrov-yii2-mailqueue)[boundstate/yii2-mailgun

Mailgun integration for the Yii framework

28160.6k](/packages/boundstate-yii2-mailgun)[rmrevin/yii2-postman

Mail module for Yii2.

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

PHPackages © 2026

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