PHPackages                             mrvokia/mailhub - 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. mrvokia/mailhub

Abandoned → [mrvokia/mailhub](/?search=mrvokia%2Fmailhub)Library[Mail &amp; Notifications](/categories/mail)

mrvokia/mailhub
===============

mail integration for laravel

v1.0.3(8y ago)82663MITPHPPHP &gt;=5.5.9

Since May 18Pushed 8y ago2 watchersCompare

[ Source](https://github.com/MrVokia/MailHub)[ Packagist](https://packagist.org/packages/mrvokia/mailhub)[ RSS](/packages/mrvokia-mailhub/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

\#MailHub

[![Build Status](https://camo.githubusercontent.com/c8354c91097eeb53b8113cafcbf9303bebd8733d197395be737648e39df00e3b/68747470733a2f2f7472617669732d63692e6f72672f4d72566f6b69612f4d61696c4875622e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/MrVokia/MailHub)[![Latest Stable Version](https://camo.githubusercontent.com/9516bdfa522398d08afb67848df119af20c6770334d9de7dc6893476c4b87ac6/68747470733a2f2f706f7365722e707567782e6f72672f6d72766f6b69612f6d61696c6875622f762f737461626c65)](https://packagist.org/packages/mrvokia/mailhub) [![Total Downloads](https://camo.githubusercontent.com/809297a14d26c945c6b9d69cc944c6224eccc57bab8e2c89df1fa42204be37c3/68747470733a2f2f706f7365722e707567782e6f72672f6d72766f6b69612f6d61696c6875622f646f776e6c6f616473)](https://packagist.org/packages/mrvokia/mailhub) [![Latest Unstable Version](https://camo.githubusercontent.com/6d24852da4d9a7cacc828173e65b86e83e3b50fb6eacbe8880aa3df88c3ed273/68747470733a2f2f706f7365722e707567782e6f72672f6d72766f6b69612f6d61696c6875622f762f756e737461626c65)](https://packagist.org/packages/mrvokia/mailhub) [![License](https://camo.githubusercontent.com/c1b28d764b381ca4e63bbed48d4b6b9b4c98d05382c4847827426ea2aa14a903/68747470733a2f2f706f7365722e707567782e6f72672f6d72766f6b69612f6d61696c6875622f6c6963656e7365)](https://packagist.org/packages/mrvokia/mailhub)

---

Language: [Chinese](https://github.com/MrVokia/MailHub/edit/master/README_CN.MD)
--------------------------------------------------------------------------------

[](#language-chinese)

#### MailHub is an email package for Laravel.

[](#mailhub-is-an-email-package-for-laravel)

*It integrates third-party email services with Laravel's SwiftMail, providing a unified protocol for email routines. A rule engine is employed to post emails to different domains by corresponding senders.*

- Provides elegant email interface instead of SwiftMail
- Connects to third-party email services beyond SwiftMail
- Currently implements email sending by SendCloud
- Tags and queues planned in next versions
- Discussions and PRs are welcome

\##How to install:

```
# The introduction of dependent libraries
composer require mrvokia/mailhub:"dev-master@dev" -vvv

# Added service provider in the providers
MrVokia\MailHub\MailHubServiceProvider::class

# Add the aliases facade
'MailHub' => MrVokia\MailHub\MailHubFacade::class

# Composer auto load
composer dump

# Push Profile mailhub
php artisan vendor:publish

```

---

\##How to use:

```
use MrVokia\MailHub\MailHub;

/**
 * Send mail
 */
public function example(MailHub $mailhub)
{
	$mailhub->send()
        	->to(['1@test.com', '2@test.com'])
        	->cc(['3@test.com'])
        	->subject('example')
        	->html('example content')
        	->start()
	//or
	MailHub::send()
			->to(['1@test.com', '2@test.com'])
			->cc(['3@test.com'])
			->subject('example')
			->html('example content')
			->start()
}

/**
 * Send template mail
 */
public function exampleTemplate(MailHub $mailhub)
{
	$mailhub->send()
        	->to(['1@test.com', '2@test.com'])
        	->subject('example')
        	->xsmtpapi([
				'active' => ['test', 'test2']
			])
        	->templateInvokeName('mail.register')
        	->start()
	//or
	MailHub::send()
       		->to(['1@test.com', '2@test.com'])
       		->cc(['3@test.com'])
       		->subject('example')
        	->xsmtpapi([
				'active' => ['test', 'test2']
			])
        	->templateInvokeName('mail.register')
       		->start()
}
```

---

\##Params：

paramsdefauleotherdescription`gateway``''``swiftmail / sendcloud`Specifies the gateway to send`async``false``true`Specify whether third-party mail (SendCloud) needs to use async send, reduce client response time after opening`env``false``true`Specifies whether to display APP\_ENV at the bottom of the message template. When enabled, add the `{` {{$ env or ''}} `` to the current APP\_ENV name in the mail template (to keep the production environment clean, APP\_ENV = product will not be shown)`pretend ``false``true`Specify whether to intercept the message, so that the message sent to the specified mailbox, mail address in the mailhub configuration file ` `mail_testname` configuration`queue ``false``true`Specify whether to enable SMTP mail queues. Refer to the Laravel documentation for queue configuration`queueTarget ``mailer``''`Specifies the SMTP mail queue pipe name---

\##Thx

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

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

Unknown

Total

1

Last Release

3279d ago

### Community

Maintainers

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

---

Top Contributors

[![MrVokia](https://avatars.githubusercontent.com/u/9609834?v=4)](https://github.com/MrVokia "MrVokia (42 commits)")

---

Tags

laravelmailmailhubsendcloudswiftmailermailemailmailerhubmailhub

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mrvokia-mailhub/health.svg)

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

###  Alternatives

[voku/bounce-mail-handler

Bounce Mail Handler

49230.9k2](/packages/voku-bounce-mail-handler)[boundstate/yii2-mailgun

Mailgun integration for the Yii framework

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

Mailgun mailer implementation for Yii2

1576.0k](/packages/yarcode-yii2-mailgun-mailer)[sandstorm/templatemailer

Neos and Flow package for simple handling of template-based emails, including CSS inlining

1147.3k2](/packages/sandstorm-templatemailer)

PHPackages © 2026

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