PHPackages                             pkj/minibase-plugin-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. [Mail &amp; Notifications](/categories/mail)
4. /
5. pkj/minibase-plugin-mailer

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

pkj/minibase-plugin-mailer
==========================

This plugin adds easy mailing support for Minibase applications. Uses SwiftMailer library.

016PHP

Since Apr 30Pushed 13y ago1 watchersCompare

[ Source](https://github.com/peec/minibase-plugin-mailer)[ Packagist](https://packagist.org/packages/pkj/minibase-plugin-mailer)[ RSS](/packages/pkj-minibase-plugin-mailer/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Mailer Plugin for Minibase
==========================

[](#mailer-plugin-for-minibase)

Adds mailing support for Minibase application. Uses the [Swiftmailer](http://swiftmailer.org/) library to send emails. Easy to configure to forexample use *gmail* as SMTP server.

Install
-------

[](#install)

```
{
  "require":{
	     "pkj/minibase-plugin-mailer": "dev-master"
	}
}
```

Setup
-----

[](#setup)

Init the plugin

```
$mb->initPlugins(array(
	'Pkj\Minibase\Plugin\MailerPlugin\MailerPlugin' => array(
		// This configures Swiftmailer to use Gmail as smtp.
		'transport' => 'smtp',
		'encryption' => 'ssl',
		'auth_mode' => 'login',
		'host' => 'smtp.gmail.com',
		'username' => 'your gmail username',
		'password' => 'your gmail password'
	)
));
```

#### Possible configuration keys:

[](#possible-configuration-keys)

- transport (smtp, mail, sendmail, loadbalanced or failover)
- username
- password
- host
- port
- encryption (tls, or ssl)
- auth\_mode (plain, login, or cram-md5)
- sendmailCommand (if using sendmail transport, you can customize the default command `/usr/sbin/sendmail -bs`)
- mailParams (if you want to customize the mailparams, used by the mail transport `-f%s`)
- transports (array of transport configuratioins, used by loadbalanced and failover transport.)

Send emails.
------------

[](#send-emails)

You can send emails from forexample controllers (note `$this->mb`):

```
$message = \Swift_Message::newInstance()
        ->setSubject('Hello Email')
        ->setFrom('send@example.com')
        ->setTo('recipient@example.com')
        ->setBody("Hello World!");

$this->mb->mailer->send($message);
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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/88b748fa2f0dcacab307a6305e98032de7adb93f955bbaf3c6fe029a7369ac84?d=identicon)[peec](/maintainers/peec)

---

Top Contributors

[![peec](https://avatars.githubusercontent.com/u/131546?v=4)](https://github.com/peec "peec (2 commits)")

### Embed Badge

![Health badge](/badges/pkj-minibase-plugin-mailer/health.svg)

```
[![Health](https://phpackages.com/badges/pkj-minibase-plugin-mailer/health.svg)](https://phpackages.com/packages/pkj-minibase-plugin-mailer)
```

###  Alternatives

[mattketmo/email-checker

Throwaway email detection library

2752.1M5](/packages/mattketmo-email-checker)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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