PHPackages                             morrelinko/laravel5-mail-dispatcher - 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. morrelinko/laravel5-mail-dispatcher

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

morrelinko/laravel5-mail-dispatcher
===================================

0.1.0(10y ago)143PHP

Since Jun 26Pushed 10y ago1 watchersCompare

[ Source](https://github.com/morrelinko/laravel5-mail-dispatcher)[ Packagist](https://packagist.org/packages/morrelinko/laravel5-mail-dispatcher)[ RSS](/packages/morrelinko-laravel5-mail-dispatcher/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Laravel5 Mail Dispatcher
------------------------

[](#laravel5-mail-dispatcher)

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

[](#installation)

```
{
    "require": {
        ...

        "morrelinko/laravel5-mail-dispatcher": "dev-master"
    }
}

```

Usage
-----

[](#usage)

#### 1. Create a Mail Handler

[](#1-create-a-mail-handler)

```
namespace App\Mailers\Users;

class SendConfirmation
{
    protected $user;

    public function __construct(User $user)
    {
        $this->user = $user;
    }

    public function mail(Mailer $mailer)
    {
        $this->user->confirmation_code = str_random(32);
        $this->user->save();

        $mailer->send(
            'emails.confirmation',
            [
                'user' => $this->user,
                'code' => $this->user->confirmation_code
            ],
            function ($message) {
                $message->to($this->user->email)
                    ->subject(sprintf('%s %s', config('app.title'), 'Email Verification'));
            }
        );
    }
}

```

Note: You can type hint `mail()` with Objects you want resolved out of the Container (As is `Mailer` in the example).

#### 2. Just add the `SendsMail` trait to any class you want to dispatch a mail like so:

[](#2-just-add-the-sendsmail-trait-to-any-class-you-want-to-dispatch-a-mail-like-so)

```
use Morrelinko\MailDispatcher\SendsMail;

class UserAuthController
{
    use SendsMail;

    public function register()
    {
        $user = User::whereId(1)->first();

        $this->mail(
            new SendConfirmation($user)
        );
    }
}

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

3979d ago

### Community

Maintainers

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

---

Top Contributors

[![morrelinko](https://avatars.githubusercontent.com/u/2414096?v=4)](https://github.com/morrelinko "morrelinko (7 commits)")

### Embed Badge

![Health badge](/badges/morrelinko-laravel5-mail-dispatcher/health.svg)

```
[![Health](https://phpackages.com/badges/morrelinko-laravel5-mail-dispatcher/health.svg)](https://phpackages.com/packages/morrelinko-laravel5-mail-dispatcher)
```

###  Alternatives

[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)[eduardokum/laravel-mail-auto-embed

Library for embed images in emails automatically

1702.0M5](/packages/eduardokum-laravel-mail-auto-embed)

PHPackages © 2026

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