PHPackages                             adwiv/laravel-error-mailer - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. adwiv/laravel-error-mailer

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

adwiv/laravel-error-mailer
==========================

Report errors by mail while ignoring repeating ones.

0.9.3(1y ago)1301MITPHPPHP ^8.1

Since Aug 4Pushed 1y ago1 watchersCompare

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

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

Laravel ErrorLog Mailer
=======================

[](#laravel-errorlog-mailer)

Package to report laravel errors by email with throttling and deduplication.

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

[](#installation)

1. Require this package with composer using the following command:

```
composer require adwiv/laravel-error-mailer
```

2. Run the migration to create the `error_logs` table.

```
php artisan migrate
```

3. Add the following keys to .env file

```
# Required Key
ERROR_MAILER_TO = "hello@example.com,admin@example.com" # Comma separated list of email addresses
```

```
# Optional Keys
ERROR_MAILER_FROM = "errors@example.com" # Mail sender, if not defined defaults to config setting
ERROR_MAILER_REPEAT_AFTER = 300   # Time in seconds for which same error will not be reported again
ERROR_MAILER_HOURLY_LIMIT = 10    # Maximum number of error mails that will be sent in an hour
```

4. Configure `config/logging.php`. The package automatically adds a logging channel named `error-mailer`.

The simplest way to use it is to add it the `stack` channel.

```
    'channels' => [
        'stack' => [
            'driver' => 'stack',
            'channels' => ['single', 'error-mailer'], # false,
        ],
        ...
     ],
```

Thats all. Any errors should now be reported to all the email addresses listed in `ERROR_MAILER_TO` environment option.

Troubleshooting
---------------

[](#troubleshooting)

If mails are not being recieived, please check:

1. Mail sending is configured correctly and you are able to send other mails without any issues.
2. The `ERROR_MAILER_TO` variable is defined in .env file and has valid email addresses (without spaces)
3. The mail queue is being processed correctly
4. Check the laravel.log for any reported issues.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance49

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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 ~343 days

Total

5

Last Release

370d ago

PHP version history (2 changes)v0.1.0PHP ^7.2 || ^8.0

0.9.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/23ddd0efe37ee57281e6f26e490a4dd14057f4b753052a320bab03eb0aea656e?d=identicon)[adwiv](/maintainers/adwiv)

---

Top Contributors

[![adwiv](https://avatars.githubusercontent.com/u/11003751?v=4)](https://github.com/adwiv "adwiv (12 commits)")

### Embed Badge

![Health badge](/badges/adwiv-laravel-error-mailer/health.svg)

```
[![Health](https://phpackages.com/badges/adwiv-laravel-error-mailer/health.svg)](https://phpackages.com/packages/adwiv-laravel-error-mailer)
```

###  Alternatives

[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14642.7k1](/packages/guanguans-laravel-exception-notify)[rafaellaurindo/laravel-telegram-logging

Send Laravel logs to a Telegram chat via Telegram Bot.

3326.8k](/packages/rafaellaurindo-laravel-telegram-logging)

PHPackages © 2026

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