PHPackages                             darkair/yii2-mailtank - 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. darkair/yii2-mailtank

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

darkair/yii2-mailtank
=====================

Yii2 extension for Mailtank Client

0274PHP

Since Jul 9Pushed 11y ago1 watchersCompare

[ Source](https://github.com/DarkAiR/yii2-mailtank)[ Packagist](https://packagist.org/packages/darkair/yii2-mailtank)[ RSS](/packages/darkair-yii2-mailtank/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-mailtank
=============

[](#yii2-mailtank)

Yii2 Mailtank (mailtank.ru) extension

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

[](#installation)

### Install package

[](#install-package)

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

Either run

```
$ php composer.phar require darkair/yii2-mailtank "dev-master"

```

or add

```
"darkair/yii2-mailtank": "dev-master"

```

to the `require` section of your `composer.json` file.

### Migration

[](#migration)

You have to copy migrations to your 'migrations' directory `cp vendor/darkair/yii2-mailtank/src/migrations/* migrations`Then you have to run `migrate` command for creating DB tables.

Usage
-----

[](#usage)

Add target class in your project config:

```
'components' => [
    'mailtank' => [
        'class' => 'mailtank\Mailtank',
        'host' => 'api.mailtank.ru',
        'token' => '',                          // API access key
        'templatesPath' => '@app/views/mail',   // Path or alias to folder with mailtank templates without end slash
        'templatePrefix' => 'testproject.com',  // Template prefix, unique for project
        'excludeTemplates' => [                 // Exclude templates like 'base'
            'baseMail',
            'subfolder/otherExcludeMail',
        ],
    ],

```

Then use:

```
Yii::$app->mailtank->send

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

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://www.gravatar.com/avatar/b27f2a36d6c1878d0b537573c8c4067e72f6e7184425a7aad2251c08dc8ac857?d=identicon)[DarkAiR](/maintainers/DarkAiR)

---

Top Contributors

[![DarkAiR](https://avatars.githubusercontent.com/u/1285623?v=4)](https://github.com/DarkAiR "DarkAiR (12 commits)")

### Embed Badge

![Health badge](/badges/darkair-yii2-mailtank/health.svg)

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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