PHPackages                             ereminmdev/yii2-unisendermailer - 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. ereminmdev/yii2-unisendermailer

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

ereminmdev/yii2-unisendermailer
===============================

The Unisender integration for the Yii framework

v1.0.32(1y ago)0343MITPHPPHP &gt;=7.4

Since Jun 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ereminmdev/yii2-unisendermailer)[ Packagist](https://packagist.org/packages/ereminmdev/yii2-unisendermailer)[ RSS](/packages/ereminmdev-yii2-unisendermailer/feed)WikiDiscussions main Synced 2mo ago

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

Unisender mailer Extension for Yii 2
====================================

[](#unisender-mailer-extension-for-yii-2)

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

[](#installation)

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

Either run

```
composer require --prefer-dist ereminmdev/yii2-unisendermailer

```

or add

```
"ereminmdev/yii2-unisendermailer": "~1.0"

```

to the require section of your composer.json.

Usage
-----

[](#usage)

To use this extension, simply add the following code in your application configuration:

```
return [
    //....
    'components' => [
        'uniMailer' => [
            'class' => 'ereminmdev\yii2\unisendermailer\Mailer',
            'viewPath' => '@common/mail',
            'platform' => 'Yii',
            'apiKey' => '...',
            'listId' => ...,
            'maxSimpleCount' => 0,
            'senderName' => '...',
            'senderEmail' => '...',
            'smsSenderName' => '...',
        ],
    ],
];
```

You can then send an e-mail as follows:

```
Yii::$app->uniMailer->compose('contact/html')
    ->setTo($form->email)
    ->setSubject($form->subject)
    ->send(); // or ->sendEmail();
```

To send sms:

```
Yii::$app->uniMailer->compose('contact/html')
    ->setTo($form->phone)
    ->setSubject($form->subject)
    ->setType(Message::TYPE_SMS)
    ->send(); // or ->sendSms();
```

To set sender name and e-mail:

```
$mailer = Yii::$app->uniMailer;
// for e-mail
$mailer->senderName = 'Sender Name';
$mailer->senderEmail = 'sender@mail.com';
// for sms
$mailer->smsSenderName = 'Sender';
```

For further instructions refer to the [related section in the Yii Definitive Guide](http://www.yiiframework.com/doc-2.0/guide-tutorial-mailing.html).

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity74

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~85 days

Recently: every ~63 days

Total

33

Last Release

528d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.0

v1.0.29PHP &gt;=7.4

### Community

Maintainers

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

---

Top Contributors

[![ereminmdev](https://avatars.githubusercontent.com/u/10267331?v=4)](https://github.com/ereminmdev "ereminmdev (29 commits)")

---

Tags

mailemailmaileryii2unisender

### Embed Badge

![Health badge](/badges/ereminmdev-yii2-unisendermailer/health.svg)

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

###  Alternatives

[boundstate/yii2-mailgun

Mailgun integration for the Yii framework

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

Mailgun mailer implementation for Yii2

1576.0k](/packages/yarcode-yii2-mailgun-mailer)[nickcv/yii2-mandrill

Mandrill Api Integration for Yii2

29554.2k2](/packages/nickcv-yii2-mandrill)

PHPackages © 2026

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