Download the PHP package hugomyb/filament-error-mailer without Composer

On this page you can find all versions of the php package hugomyb/filament-error-mailer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-error-mailer

Filament Error Mailer 🚨

Latest Version on Packagist Total Downloads

A powerful Filament plugin that provides instant error notifications via email and Discord webhooks, with a beautiful error details page for debugging. Never miss a critical error in your application again!

✨ Key Features

📋 Table of Contents

📦 Installation

Step 1: Install via Composer

Step 2: Publish Configuration

Publish the configuration file:

This creates config/error-mailer.php with the following default configuration:

Step 3: Configure Mail Server

⚠️ IMPORTANT: Configure your mail server in .env to receive email notifications:

Step 4: Register the Plugin

Add the plugin to your Filament panel provider (e.g., app/Providers/Filament/AdminPanelProvider.php):

Step 5: (Optional) Publish Views

If you want to customize the error details page or email template:


⚙️ Configuration

Email Configuration

Configure email recipients and subject in config/error-mailer.php:

Options:

Discord Webhook

Send error notifications to Discord channels:

1. Create a Discord Webhook:

2. Add to .env:

3. Customize webhook messages (optional):

Custom Webhook Endpoints

In addition to the Discord webhook, the plugin can POST the raw error details (as JSON) to any number of custom URLs. This is useful for forwarding errors to n8n, Zapier, Slack apps, a monitoring service, or your own internal API.

1. Via .env (comma-separated list):

2. Or directly in config/error-mailer.php:

Each URL receives a POST request with a JSON body containing the full error details:

Endpoints share the same cooldown as the email/Discord notifications — duplicate errors within cacheCooldown minutes are not re-sent.

Error Filtering

Control which errors trigger notifications:

Available log levels:

Disable in Specific Environments

Prevent notifications in certain environments (e.g., local development):

Cooldown Period

Prevent notification spam for duplicate errors:

If the same error occurs multiple times within this period, only the first occurrence will trigger a notification.

Storage Path

Customize where error JSON files are stored:


🎯 Features in Detail

Smart Application File Detection

When an error occurs, the package intelligently identifies the first line of code from your application (excluding vendor files) in the stack trace.

Example:

Instead of showing:

You'll see:

This makes debugging significantly faster by immediately showing you where in your code the error originated.

Error Details Page

Each error notification includes a unique link to a beautiful, feature-rich error details page:

Features:

Information displayed:

Access: Only authenticated Filament users can view error details.

Notification Cooldown

The cooldown system prevents notification spam:

  1. When an error occurs, a notification is sent
  2. Error details are stored with a timestamp
  3. If the same error occurs again within the cooldown period, no new notification is sent
  4. After the cooldown expires, the next occurrence will trigger a new notification

Error identification: Errors are identified by a hash of the error message and file path.


🚀 Usage

Accessing Error Details

Error detail links are automatically included in:

URL format: https://yourapp.com/error-mailer/{errorId}

Example email:

Scheduled Cleanup

Error JSON files are stored indefinitely by default. To prevent excessive storage usage, schedule a cleanup task in app/Console/Kernel.php:

Recommended retention periods:


🔧 Advanced Configuration

Complete Configuration Reference


📚 Related Projects

This plugin is also available for Laravel projects without Filament:

👉 Laravel Error Mailer


🤝 Contributing

Contributions are welcome! Please see CONTRIBUTING for details.

Development Setup

Running Tests


🔒 Security Vulnerabilities

If you discover a security vulnerability, please send an email to [email protected]. All security vulnerabilities will be promptly addressed.

Please review our security policy for more information.


👥 Credits


📄 License

The MIT License (MIT). Please see License File for more information.


💡 Support

If you find this package helpful, please consider:


Made with ❤️ for the Filament community


All versions of filament-error-mailer with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
filament/filament Version ^3.0|^4.0|^5.0
spatie/laravel-package-tools Version ^1.15.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hugomyb/filament-error-mailer contains the following files

Loading the files please wait ...