PHPackages                             bastinald/laravel-exception-emailer - 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. bastinald/laravel-exception-emailer

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

bastinald/laravel-exception-emailer
===================================

Laravel exception message &amp; stack trace emailer.

1.0.4(4y ago)1113MITPHP

Since Aug 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/bastinald/laravel-exception-emailer)[ Packagist](https://packagist.org/packages/bastinald/laravel-exception-emailer)[ Docs](https://github.com/bastinald/laravel-exception-emailer)[ RSS](/packages/bastinald-laravel-exception-emailer/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

Laravel Exception Emailer
=========================

[](#laravel-exception-emailer)

This package will send an email any time an exception happens in your Laravel application. The email contains the exception message and a full stack trace. You can specify which email addresses to send to, as well as which environments the emails should be sent in.

Documentation
-------------

[](#documentation)

- [Installation](#installation)
- [Publishing Config](#publishing-config)

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

[](#installation)

Require the package:

```
composer require bastinald/laravel-exception-emailer
```

Configure your `.env` MAIL settings, for example:

```
MAIL_MAILER=smtp
MAIL_HOST=localhost
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=info@laravel.test
MAIL_FROM_NAME="${APP_NAME}"
```

Dispatch the `EmailException` job in the `Handler::register` method:

```
namespace App\Exceptions;

use Bastinald\LaravelExceptionEmailer\Jobs\EmailException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Throwable;

class Handler extends ExceptionHandler
{
    public function register()
    {
        $this->reportable(function (Throwable $e) {
            EmailException::dispatch($e->getMessage(), $this->renderExceptionContent($e));
        });
    }
}
```

Publish the config file:

```
php artisan vendor:publish --tag=laravel-exception-emailer:config
```

Set the emails &amp; environments in the published config file:

```
'emails' => 'admin@example.com',
'environments' => 'production',
```

Publishing Config
-----------------

[](#publishing-config)

Customize the package configuration by publishing the config file:

```
php artisan vendor:publish --tag=laravel-exception-emailer:config
```

Now you can easily change things like the email addresses and exception environments.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~0 days

Total

5

Last Release

1744d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/82109804?v=4)[bastinald](/maintainers/bastinald)[@bastinald](https://github.com/bastinald)

---

Top Contributors

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

---

Tags

emailemailerexceptionlaravel

### Embed Badge

![Health badge](/badges/bastinald-laravel-exception-emailer/health.svg)

```
[![Health](https://phpackages.com/badges/bastinald-laravel-exception-emailer/health.svg)](https://phpackages.com/packages/bastinald-laravel-exception-emailer)
```

###  Alternatives

[spatie/laravel-failed-job-monitor

Get notified when a queued job fails

1.0k2.6M4](/packages/spatie-laravel-failed-job-monitor)[vemcogroup/laravel-sparkpost-driver

SparkPost driver to use with Laravel 6.x|7.x|8.x|9.x|10.x

421.7M1](/packages/vemcogroup-laravel-sparkpost-driver)[spatie/mailcoach

Self-host Mailcoach

4007.0k](/packages/spatie-mailcoach)[synergitech/laravel-postal

This library integrates Postal with the standard Laravel mail framework.

38107.1k](/packages/synergitech-laravel-postal)[motomedialab/smtp2go

Send emails via API using the first-class email courier SMTP2Go

1316.3k](/packages/motomedialab-smtp2go)

PHPackages © 2026

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