PHPackages                             atellitech/postal-yii2 - 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. atellitech/postal-yii2

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

atellitech/postal-yii2
======================

It's yii2 component integrating atellitech/postal-php

1.2.1(1mo ago)0460MITPHPPHP ^8.0

Since Jan 27Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/AtelliTech/postal-yii2)[ Packagist](https://packagist.org/packages/atellitech/postal-yii2)[ Docs](https://github.com/AtelliTech/postal-yii2)[ RSS](/packages/atellitech-postal-yii2/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (8)Versions (10)Used By (0)

Postal Yii2
===========

[](#postal-yii2)

It's yii2 component integrating atellitech/postal-php and provides LogTarget integration.

Getting Start
-------------

[](#getting-start)

### Requirements

[](#requirements)

- Postal host
- Postal credential key
- php8.0+

### Install

[](#install)

```
$ /lib/path/composer require atellitech/postal-yii2

```

### Add component into config file of yii2 project

[](#add-component-into-config-file-of-yii2-project)

```
...
"components": [
    "postal" => [
        'class' => 'AtelliTech\\Yii2\\Postal',
        'host' => $host,
        'key' => $key
    ]
]

```

### Usage

[](#usage)

```
$message = [
    'subject' => 'Hello Test',
    'to' => ['xxx@abc.com',...],
    'from' => 'Test ',
    'html_body' => 'Hello, TestHow are you today?'
];

$result = Yii::$app->postal->send($message);

```

Log Target Integration
----------------------

[](#log-target-integration)

### Install

[](#install-1)

```
$ /lib/path/composer require atellitech/postal-yii2

```

### Add component into config file of yii2 project

[](#add-component-into-config-file-of-yii2-project-1)

```
...
"components": [
    "postal" => [
        'class' => 'AtelliTech\\Yii2\\Postal',
        'host' => $host,
        'key' => $key
    ],
    "log" => [
        'targets' => [
            [
                'class' => 'AtelliTech\Yii2\PostalLogTarget',
                'levels' => ['error', 'warning'],
                'postal' => 'postal',
                'subject' => '[Alert] System log', // anything your want
                'from' => 'SysAdmin ',  // anything your want
                'to' => ['xxxx@abc.com']  // any email addresses
            ],
        ]
    ]
]

```

### Usage

[](#usage-1)

Please refer to [Yii2 Logging Document](https://www.yiiframework.com/doc/guide/2.0/en/runtime-logging)

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance94

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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.

###  Release Activity

Cadence

Every ~203 days

Recently: every ~301 days

Total

7

Last Release

31d ago

PHP version history (2 changes)1.0.0PHP &gt;=8.0

1.2.1PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/123725472?v=4)[AtelliTech](/maintainers/atellitech)[@AtelliTech](https://github.com/AtelliTech)

---

Top Contributors

[![iamgold](https://avatars.githubusercontent.com/u/19813333?v=4)](https://github.com/iamgold "iamgold (7 commits)")

---

Tags

postalmailyii2

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/atellitech-postal-yii2/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)[boundstate/yii2-mailgun

Mailgun integration for the Yii framework

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

Mailgun mailer implementation for Yii2

1676.6k](/packages/yarcode-yii2-mailgun-mailer)[rmrevin/yii2-postman

Mail module for Yii2.

2612.3k](/packages/rmrevin-yii2-postman)[tigrov/yii2-mailqueue

Yii2 mail queue component for yii2-swiftmailer.

186.6k](/packages/tigrov-yii2-mailqueue)

PHPackages © 2026

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