PHPackages                             msemeen/laravel-error-reporter - 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. msemeen/laravel-error-reporter

ActiveLibrary

msemeen/laravel-error-reporter
==============================

Laravel package to report errors to Discord or Email

v1.1(12mo ago)110MITPHPPHP ^8.1CI passing

Since May 4Pushed 12mo ago1 watchersCompare

[ Source](https://github.com/Motawash-Semeen/laravel-error-reporter)[ Packagist](https://packagist.org/packages/msemeen/laravel-error-reporter)[ RSS](/packages/msemeen-laravel-error-reporter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

🚨 Laravel Error Reporter
========================

[](#-laravel-error-reporter)

**Never miss a critical error again!** Get instant notifications when your Laravel application encounters exceptions.

[![Latest Version](https://camo.githubusercontent.com/3e9eb45c4e5ffbec8776ced1a6350ac9efa71a1045b3ac3ee32ae12d29f74c13/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d73656d65656e2f6c61726176656c2d6572726f722d7265706f727465723f7374796c653d666c61742d737175617265)](https://packagist.org/packages/msemeen/laravel-error-reporter)[![Total Downloads](https://camo.githubusercontent.com/0b374029ef30b922cd6047655837ea1feccec3fd51d1acbfda51807cc12eb48b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d73656d65656e2f6c61726176656c2d6572726f722d7265706f727465723f7374796c653d666c61742d737175617265)](https://packagist.org/packages/msemeen/laravel-error-reporter)[![License](https://camo.githubusercontent.com/4b01b075bab99e55e8b67f973c880de09419ae0469fe17e556c6a3c4507eba5a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d73656d65656e2f6c61726176656c2d6572726f722d7265706f727465723f7374796c653d666c61742d737175617265)](LICENSE)[![Tests](https://camo.githubusercontent.com/8a523123b592988d2bb1e8c79c39c6d8b587a416a10a340f987d68c421ebf4fa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d73656d65656e2f6c61726176656c2d6572726f722d7265706f727465722f74657374732e796d6c3f6c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/msemeen/laravel-error-reporter/actions)

🔥 Features That Will Save Your Day
----------------------------------

[](#-features-that-will-save-your-day)

- **Instant Alerts** - Get notified immediately when errors occur
- **Multi-Channel Support** - Discord, Slack, Email, and more coming soon!
- **Smart Grouping** - Similar errors are grouped to avoid notification spam
- **Zero Config** - Works out of the box with sensible defaults
- **Lightweight** - No bloated dependencies or database requirements
- **Laravel 8-12+** - Full support across Laravel versions

```
// Never miss an error again!
try {
    // Your risky code here
} catch (\Exception $e) {
    ErrorReporter::report($e); // That's it!
}
```

🚀 Quick Installation
--------------------

[](#-quick-installation)

1. Install via Composer:

```
composer require msemeen/laravel-error-reporter
```

2. Publish the config file (optional):

```
php artisan vendor:publish --tag=error-reporter-config
```

3. Publish the email template file (optional):

```
php artisan vendor:publish --tag=error-reporter-views
```

💡 Why You Need This
-------------------

[](#-why-you-need-this)

Imagine this: It's 3 AM, your production app is crashing, and you have no idea. Customers are frustrated, revenue is being lost.

With Laravel Error Reporter, you'll:

✅ **Catch errors before users report them**
✅ **Get notified instantly** via Discord/Slack/Email
✅ **Sleep better** knowing you'll be alerted of issues
✅ **Fix problems faster** with detailed error reports

📌 Basic Usage
-------------

[](#-basic-usage)

### Report Exceptions Automatically

[](#report-exceptions-automatically)

```
// In your exception handler add below function
use Msemeen\ErrorReporter\Facades\ErrorReporter;

public function register()
{
    $this->reportable(function (Throwable $e) {
        ErrorReporter::report($e);
    });
}
```

### Send Custom Error Messages

[](#send-custom-error-messages)

```
// Manually send important notifications
ErrorReporter::send(
    'Payment service is down!',
    'Critical Service Alert'
);
```

⚙️ Configuration
----------------

[](#️-configuration)

### Environment Variables

[](#environment-variables)

Configure your notification channels in `.env`:

```
# Discord
ERROR_REPORTER_DISCORD_ENABLED=true
ERROR_REPORTER_DISCORD_WEBHOOK=https://discord.com/api/webhooks/...
ERROR_REPORTER_DISCORD_USERNAME="Error Bot"

# Email
ERROR_REPORTER_EMAIL_ENABLED=true
ERROR_REPORTER_EMAIL_TO=admin@example.com
ERROR_REPORTER_EMAIL_FROM=alerts@example.com
ERROR_REPORTER_EMAIL_SUBJECT="Application Error Alert"

# Slack
ERROR_REPORTER_SLACK_ENABLED=true
ERROR_REPORTER_SLACK_WEBHOOK=https://hooks.slack.com/services/...
ERROR_REPORTER_SLACK_USERNAME="Error Bot"
ERROR_REPORTER_SLACK_ICON=":fire:"
ERROR_REPORTER_SLACK_CHANNEL="#errors"
```

### Enable/Disable Notification Channels

[](#enabledisable-notification-channels)

You can easily enable or disable any notification channel through your `.env` file:

```
# Enable/disable specific channels
ERROR_REPORTER_DISCORD_ENABLED=true
ERROR_REPORTER_EMAIL_ENABLED=false
ERROR_REPORTER_SLACK_ENABLED=true
```

### Setting Up Webhooks

[](#setting-up-webhooks)

#### Discord Webhook Setup

[](#discord-webhook-setup)

1. Open your Discord server
2. Go to Server Settings &gt; Integrations &gt; Webhooks
3. Click "New Webhook"
4. Name your webhook (e.g., "Error Reporter")
5. Select the channel where errors should be posted
6. Click "Copy Webhook URL"
7. Add this URL to your `.env` file as `ERROR_REPORTER_DISCORD_WEBHOOK`

#### Slack Webhook Setup

[](#slack-webhook-setup)

1. Go to
2. Click "Create New App" &gt; "From scratch"
3. Name your app and select your workspace
4. From the sidebar, click "Incoming Webhooks"
5. Toggle "Activate Incoming Webhooks" to On
6. Click "Add New Webhook to Workspace"
7. Choose the channel to post messages to
8. Copy the webhook URL
9. Add this URL to your `.env` file as `ERROR_REPORTER_SLACK_WEBHOOK`

🎨 Customization
---------------

[](#-customization)

### Customize Error Messages

[](#customize-error-messages)

```
ErrorReporter::report($exception, function($message) {
    return $message->setTitle('Custom Title')
                  ->addContext('user_id', auth()->id())
                  ->addContext('request_data', request()->all());
});
```

### Advanced Configuration

[](#advanced-configuration)

You can publish and modify the configuration file for more options:

```
// config/error-reporter.php

return [
    'enabled' => env('ERROR_REPORTER_ENABLED', true),

    'grouping' => [
        'enabled' => true,
        'threshold' => 5, // Group similar errors if they occur within 5 minutes
    ],

    'channels' => [
        'discord' => [
            'enabled' => env('ERROR_REPORTER_DISCORD_ENABLED', false),
            'webhook' => env('ERROR_REPORTER_DISCORD_WEBHOOK'),
            'username' => env('ERROR_REPORTER_DISCORD_USERNAME', 'Error Reporter'),
        ],

        'email' => [
            'enabled' => env('ERROR_REPORTER_EMAIL_ENABLED', false),
            'to' => env('ERROR_REPORTER_EMAIL_TO'),
            'from' => env('ERROR_REPORTER_EMAIL_FROM'),
            'subject' => env('ERROR_REPORTER_EMAIL_SUBJECT', 'Application Error Alert'),
        ],

        'slack' => [
            'enabled' => env('ERROR_REPORTER_SLACK_ENABLED', false),
            'webhook' => env('ERROR_REPORTER_SLACK_WEBHOOK'),
            'username' => env('ERROR_REPORTER_SLACK_USERNAME', 'Error Reporter'),
            'icon' => env('ERROR_REPORTER_SLACK_ICON', ':warning:'),
            'channel' => env('ERROR_REPORTER_SLACK_CHANNEL'),
        ],
    ],

    'ignore_exceptions' => [
        // List exception classes to ignore
        \Illuminate\Auth\AuthenticationException::class,
        \Symfony\Component\HttpKernel\Exception\NotFoundHttpException::class,
    ],
];
```

📊 Error Filtering
-----------------

[](#-error-filtering)

Filter out noise by ignoring certain exception types:

```
// In your ServiceProvider or exception handler
ErrorReporter::ignoreExceptions([
    \Illuminate\Validation\ValidationException::class,
    \Symfony\Component\HttpKernel\Exception\NotFoundHttpException::class,
]);
```

🤝 Contributing
--------------

[](#-contributing)

We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.

📜 License
---------

[](#-license)

This package is open-source software licensed under the [MIT license](LICENSE).

---

**Stop flying blind.** Get instant visibility into your application's health today! ✨

```
composer require msemeen/laravel-error-reporter
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance50

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Total

4

Last Release

364d ago

PHP version history (2 changes)v1.0.0PHP ^8.0

v1.0.2PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/5de4f1902cee388c3e0eab6c533edffd14ea2bc73b4b88b829e197bd69656a55?d=identicon)[Motawash-Semeen](/maintainers/Motawash-Semeen)

---

Top Contributors

[![Motawash-Semeen](https://avatars.githubusercontent.com/u/97349218?v=4)](https://github.com/Motawash-Semeen "Motawash-Semeen (15 commits)")

---

Tags

error-monitoringerror-reportinglaravel-package

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/msemeen-laravel-error-reporter/health.svg)

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

###  Alternatives

[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[stechstudio/laravel-zipstream

A fast and simple streaming zip file downloader for Laravel.

4633.7M3](/packages/stechstudio-laravel-zipstream)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[spatie/laravel-export

Create a static site bundle from a Laravel app

646127.9k5](/packages/spatie-laravel-export)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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