PHPackages                             lopatin96/laravel-mail - 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. lopatin96/laravel-mail

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

lopatin96/laravel-mail
======================

Laravel mail

1.0.10(2y ago)06.4kMITPHPPHP &gt;=8.1

Since Sep 26Pushed 2y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (12)Used By (0)

Install
=======

[](#install)

### Migrations

[](#migrations)

```
php artisan vendor:publish --tag="laravel-mail-migrations"
```

then run `php artisan migrate`

### Listeners

[](#listeners)

Register an event listener in *App\\Providers\\EventServiceProvider*:

```
use Atin\LaravelMail\Listeners\LogSentMessage;
use Illuminate\Mail\Events\MessageSent;

/**
 * The event listener mappings for the application.
 *
 * @var array
 */
protected $listen = [
    MessageSent::class => [
        LogSentMessage::class,
    ],
];
```

### Generating Mailables

[](#generating-mailables)

New "mailable" class will be stored in the *app/Mail* directory.

```
php artisan make:mail OrderShipped
```

### Mailable class

[](#mailable-class)

Extend from `Atin\LaravelMail\Mail\Mailable` to log.

```
use Atin\LaravelMail\Mail\Mailable;

class UserConfirmEmail extends Mailable
{
    public function build()
    {
         // Build email
    }
}
```

### Trait

[](#trait)

Add `HasMailLogs` trait.

```
use Atin\LaravelMail\Traits\HasMailLogs;

class User extends Authenticatable
{
    use HasMailLogs;
    …
}
```

### Migrations

[](#migrations-1)

```
php artisan vendor:publish --tag="laravel-mail-migrations"
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

Every ~5 days

Recently: every ~13 days

Total

11

Last Release

914d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ed7ade2d44e2f66eedf7dec7136ca591145f77d8192bdd789e04797c575d0f3?d=identicon)[Vladyslav Lopatin](/maintainers/Vladyslav%20Lopatin)

---

Top Contributors

[![vladyslav-lopatin-wskz](https://avatars.githubusercontent.com/u/214472383?v=4)](https://github.com/vladyslav-lopatin-wskz "vladyslav-lopatin-wskz (10 commits)")[![lopatin96](https://avatars.githubusercontent.com/u/18104593?v=4)](https://github.com/lopatin96 "lopatin96 (6 commits)")

### Embed Badge

![Health badge](/badges/lopatin96-laravel-mail/health.svg)

```
[![Health](https://phpackages.com/badges/lopatin96-laravel-mail/health.svg)](https://phpackages.com/packages/lopatin96-laravel-mail)
```

###  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)
