PHPackages                             abiodun/mailswifter - 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. [Templating &amp; Views](/categories/templating)
4. /
5. abiodun/mailswifter

ActiveLibrary[Templating &amp; Views](/categories/templating)

abiodun/mailswifter
===================

Mail swifter is a free mailer built on swiftmailer for html template injection and data parser

1.0.1(7y ago)129MITPHPPHP &gt;=5.3.0

Since Dec 11Pushed 7y ago1 watchersCompare

[ Source](https://github.com/iamhabbeboy/mailswifter)[ Packagist](https://packagist.org/packages/abiodun/mailswifter)[ RSS](/packages/abiodun-mailswifter/feed)WikiDiscussions master Synced 2mo ago

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

mailswifter
===========

[](#mailswifter)

> Mail swifter is a free mailer built on swiftmailer for html template injection and data parser.

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

[](#installation)

```
composer require abiodun/mailswifter
```

Usage
-----

[](#usage)

```
use Abiodun\MailSwifter\MailProvider
```

`index.php`

```
    $mail_provider = new MailProvider([
        'username' => 'username@gmail.com',
        'password' => 'password',
        'smtp' => 'smtp.gmail.com',
    ]);

    $mail_provider->from = ['username@gmail.com' => 'Testing MailSwifter'];
    $mail_provider->to = ['username@gmail.com', 'username@gmail.com' => 'Mailing'];

    $mail_provider->subject = 'New Mail Test';

    $file = __DIR__ . '/sample.html';
    $data_list = [
        'name' => ' ',
        'url' => 'http://info.google.com',
        'category' => 'Fashion',
    ];
    $resp = $mail_provider->template($file, $data_list);
    $resp = $mail_provider->send();
```

`sample.html`

```
    This is a sample for the mail
     i surely believe this would work so well

    Name is: [name]
    Url: [url]
    Category: [category]
    i'm so happy here
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.3% 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

Unknown

Total

1

Last Release

2706d ago

### Community

Maintainers

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

---

Top Contributors

[![elite2code](https://avatars.githubusercontent.com/u/12673255?v=4)](https://github.com/elite2code "elite2code (8 commits)")[![iamhabbeboy](https://avatars.githubusercontent.com/u/17249473?v=4)](https://github.com/iamhabbeboy "iamhabbeboy (7 commits)")

---

Tags

mailemailtemplatemailer

### Embed Badge

![Health badge](/badges/abiodun-mailswifter/health.svg)

```
[![Health](https://phpackages.com/badges/abiodun-mailswifter/health.svg)](https://phpackages.com/packages/abiodun-mailswifter)
```

###  Alternatives

[lorenzo/pinky

A Foundation for Emails (Inky) template transpiler

28813.3M12](/packages/lorenzo-pinky)[yiisoft/yii2-swiftmailer

The SwiftMailer integration for the Yii framework

11520.0M469](/packages/yiisoft-yii2-swiftmailer)[larablocks/pigeon

A more flexible email message builder for Laravel 5 including chained methods, reusable message configurations, and message layout and template view management.

143.7k](/packages/larablocks-pigeon)[text/template

Simple and secure string-template-engine (Twig-like syntax) with nested if/elseif/else, loops, filters. Simple OOP api: Just one class doing the job (2-lines of code). Fast and secure: No code-generation, no eval'ed() code. Extensible by callbacks. Fully tested. Rich examples included.

38201.1k10](/packages/text-template)[muratbsts/mail-template

This package is a easy to use mail template collection for Laravel 5.x.

191.3k](/packages/muratbsts-mail-template)

PHPackages © 2026

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