PHPackages                             hugomyb/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. [Mail &amp; Notifications](/categories/mail)
4. /
5. hugomyb/error-mailer

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

hugomyb/error-mailer
====================

Receive instant alerts to stay informed about errors occurring on your website and act swiftly to enhance its stability. This Laravel package simplifies the sending of emails containing detailed error information, allowing you to effectively monitor your application's health.

v2.0.1(1y ago)4171↓100%2MITPHPPHP ^8.0

Since Sep 21Pushed 1y ago2 watchersCompare

[ Source](https://github.com/hugomyb/LaravelErrorMailer)[ Packagist](https://packagist.org/packages/hugomyb/error-mailer)[ Docs](https://github.com/hugomayo7/ErrorMailer)[ RSS](/packages/hugomyb-error-mailer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (14)Used By (0)

Laravel Error Mailer
====================

[](#laravel-error-mailer)

Receive instant alerts to stay informed about errors occurring on your website and act swiftly to enhance its stability. This Laravel package simplifies the sending of emails containing detailed error information, allowing you to effectively monitor your application's health.

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

[](#installation)

To get started with Error Mailer, follow these steps:

1. Install the package using Composer:

```
composer require hugomyb/error-mailer -W
```

The -W flag is used to update your composer.json file to add the package as a requirement.

2. Add the Error Mailer service provider to the providers array in your `config/app.php` file:

```
'providers' => [
    // ...
    \Hugomyb\ErrorMailer\ErrorMailerServiceProvider::class,
],
```

3. Publish the package's configuration file :

```
php artisan error-mailer:publish-config
```

This will create a `config/error-mailer.php` file in your Laravel project.

```
return [
    'email' => [
        'recipient' => 'recipient@example.com',
        'subject' => 'An error was occured - ' . env('APP_NAME'),
    ],

    'disabledOn' => [
        //
    ],

    'cacheCooldown' => 10, // in minutes
];
```

Configuration
-------------

[](#configuration)

After publishing the configuration file, you can modify it to suit your needs. Open `config/error-mailer.php` and customize the following options:

`'recipient'`: Set the email address where error notifications will be sent.

`'subject'`: Define the subject line for error notification emails. You can use placeholders like `env('APP_NAME')` to dynamically include your application's name.

`'cacheCooldown'`: Set the cooling-off period (in minutes) for error notifications. If the same error occurs several times within this period.

`'disabledOn'`: You can specify a list of environments (based on `APP_ENV`) where the Error Mailer will be disabled. For example, if you want to disable the mailer in the local environment, add 'local' to the array:

```
'disabledOn' => [
    'local',
],
```

---

> ⚠️ **IMPORTANT ! Make sure to configure a mail server in your .env file :**

```
MAIL_MAILER=smtp
MAIL_HOST=your-smtp-host.com
MAIL_PORT=587
MAIL_USERNAME=your-smtp-username
MAIL_PASSWORD=your-smtp-password
MAIL_ENCRYPTION=tls
```

If the mail server is not configured in the `.env` file, email notifications will not be sent.

Usage
-----

[](#usage)

Once Error Mailer is configured, it will automatically send email notifications when errors occur in your Laravel application. The package provides detailed error information in the email content, allowing you to quickly identify and resolve issues.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/license/mit/).

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

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

Recently: every ~89 days

Total

13

Last Release

529d ago

Major Versions

1.1.1 → v2.0.02024-03-17

PHP version history (2 changes)1.0.0PHP ^8.1

1.0.1PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/65a12f2e3c6b262cd42d0ebf14525f0c6066aa6563cd3ff06034e85f931c9c54?d=identicon)[hugomyb](/maintainers/hugomyb)

---

Top Contributors

[![hugomyb](https://avatars.githubusercontent.com/u/92823242?v=4)](https://github.com/hugomyb "hugomyb (71 commits)")

---

Tags

errormailer

### Embed Badge

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

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

###  Alternatives

[nette/mail

📧 Nette Mail: A handy library for creating and sending emails in PHP.

5389.8M246](/packages/nette-mail)[fedeisas/laravel-mail-css-inliner

Inline the CSS of your HTML emails using Laravel

5974.6M3](/packages/fedeisas-laravel-mail-css-inliner)[sylius/mailer-bundle

Mailers and e-mail template management for Symfony projects.

728.1M77](/packages/sylius-mailer-bundle)[voku/bounce-mail-handler

Bounce Mail Handler

49230.9k2](/packages/voku-bounce-mail-handler)[nickcv/yii2-mandrill

Mandrill Api Integration for Yii2

29554.2k2](/packages/nickcv-yii2-mandrill)[hafael/azure-mailer-driver

Supercharge your Laravel or Symfony app with Microsoft Azure Communication Services (ACS)! Effortlessly add email, chat, voice, video, and telephony-over-IP for next-level communication. 🚀

14109.2k](/packages/hafael-azure-mailer-driver)

PHPackages © 2026

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