PHPackages                             petrabarus/yii2-archivable-mailer - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. petrabarus/yii2-archivable-mailer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

petrabarus/yii2-archivable-mailer
=================================

Yii2 extension for archiving mail HTML content

02341PHP

Since Feb 26Pushed 11y ago2 watchersCompare

[ Source](https://github.com/petrabarus/yii2-archivable-mailer)[ Packagist](https://packagist.org/packages/petrabarus/yii2-archivable-mailer)[ RSS](/packages/petrabarus-yii2-archivable-mailer/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-archivable-mailer
======================

[](#yii2-archivable-mailer)

Yii2 extension for archiving mail HTML content

[![Latest Stable Version](https://camo.githubusercontent.com/bca2d681c99ece5e9c198bea2f5e9151054a320520cc397b4b072004079286b0/68747470733a2f2f706f7365722e707567782e6f72672f706574726162617275732f796969322d61726368697661626c652d6d61696c65722f762f737461626c652e737667)](https://packagist.org/packages/petrabarus/yii2-archivable-mailer)[![Total Downloads](https://camo.githubusercontent.com/16ca1b8ff81359e870feee61bfb181d8e46d16f963fa251b3b5b3f4ed83fae23/68747470733a2f2f706f7365722e707567782e6f72672f706574726162617275732f796969322d61726368697661626c652d6d61696c65722f646f776e6c6f6164732e737667)](https://packagist.org/packages/petrabarus/yii2-archivable-mailer)[![Latest Unstable Version](https://camo.githubusercontent.com/16c8a975d546cd7e24ca3cbfd20ce074f4fb6fd1ff8bf60d5a137db875171633/68747470733a2f2f706f7365722e707567782e6f72672f706574726162617275732f796969322d61726368697661626c652d6d61696c65722f762f756e737461626c652e737667)](https://packagist.org/packages/petrabarus/yii2-archivable-mailer)

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist petrabarus/yii2-archivable-mailer "*"

```

or add

```
"petrabarus/yii2-archivable-mailer": "*"

```

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

Usage
-----

[](#usage)

At the moment there is only one provider: AWS S3. Put the behavior in the mailer configuration.

```
    'mailer' => [
        /* @var $mailer yii\swiftmailer\Mailer */
        'viewPath' => '@app/mail',
        'useFileTransport' => true,
        'as archivable' => [
            'class' => '\PetraBarus\Yii2\ArchivableMailer\ArchivableBehavior',
            'provider' => [
                'class' => '\PetraBarus\Yii2\ArchivableMailer\Providers\S3Provider',
                'bucket' => 'bucket',
                'directoryPath' => 'email',
                'config' => [
                    'key' => 'AKIAI123456789012345',
                    'secret' => '1234567890123456789012345678901234567890',
                    'region' => 'ap-southeast-1',
                ]
            ]
        ]
    ],
```

To put the URL of the archive in the HTML, just put `{{archiveurl}}` in the HTML.

e.g.

```
   View in Browser
```

The text can be changed using `archiveUrlTag` attribute of the behavior.

Road Map
--------

[](#road-map)

- Add more providers.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

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/c1261f29f95a5ca228a04c8415431baf0fb6c397ec83e93e3454fb0b55718c5e?d=identicon)[petrabarus](/maintainers/petrabarus)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/petrabarus-yii2-archivable-mailer/health.svg)

```
[![Health](https://phpackages.com/badges/petrabarus-yii2-archivable-mailer/health.svg)](https://phpackages.com/packages/petrabarus-yii2-archivable-mailer)
```

###  Alternatives

[rmunate/laravel_helpers

Empower Your Laravel Journey: Unleash the Power of Helpers! Unlock a world of possibilities with our standard creation and seamless utilization of helpers within the Laravel framework. Our solution offers a simple, efficient, and elegant way to execute your application's custom methods from any class or view, making development a breeze. Supercharge your Laravel project and elevate your coding experience with our Helper Library.

552.8k](/packages/rmunate-laravel-helpers)

PHPackages © 2026

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