PHPackages                             mprince/mailstation - 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. mprince/mailstation

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

mprince/mailstation
===================

mail integration for laravel

01PHP

Since Aug 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mprince2k18/mailstation)[ Packagist](https://packagist.org/packages/mprince/mailstation)[ RSS](/packages/mprince-mailstation/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (1)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

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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://avatars.githubusercontent.com/u/43857625?v=4)[Mohammad Prince](/maintainers/mprince2k18)[@mprince2k18](https://github.com/mprince2k18)

---

Top Contributors

[![asaduzzaman1517](https://avatars.githubusercontent.com/u/23693063?v=4)](https://github.com/asaduzzaman1517 "asaduzzaman1517 (1 commits)")[![mprince2k18](https://avatars.githubusercontent.com/u/43857625?v=4)](https://github.com/mprince2k18 "mprince2k18 (1 commits)")

### Embed Badge

![Health badge](/badges/mprince-mailstation/health.svg)

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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