Download the PHP package jgodstime/laravel-error-notifier without Composer

On this page you can find all versions of the php package jgodstime/laravel-error-notifier. 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 laravel-error-notifier

Error Notification For Laravel

run-tests

jgodstime/laravel-error-notifier emails and/or Slacks you the moment an uncaught exception happens in your Laravel app — file, line, stack trace, the route it happened on, and who was logged in when it did.

It works in any Laravel app — API-only, queue workers, console commands, or a full Blade-based site — with zero required setup beyond installing it. No view, no published files, no wiring into your exception handler needed for the core notification to work.

If your app does render Blade views to a browser, there's an optional extra: publish a 500-error feedback page that lets the visitor describe what they were doing when it broke, which gets sent as a follow-up notification alongside the original error. That part is entirely opt-in — skip it for APIs, workers, or anywhere there's no browser to show a page to.

Compatibility

PHP 8.2+ and Laravel 10, 11, 12, or 13.

If you're on an older Laravel/PHP version, install the last 1.x release instead of the latest tag.

Install

That's it — no wiring required. The package registers itself on your app's exception handler automatically, so every reportable exception triggers a notification whether or not your app has an app/Exceptions/Handler.php file (Laravel 11+ configures exceptions from bootstrap/app.php instead, and this works the same either way).

Set at least one of these two in your .env and you're done:

What you get

Email notification

Sent to NOTIFIER_EMAIL (or falls back to MAIL_FROM_ADDRESS) for every reportable exception:

Email notification sample

Slack notification

Sent to LOG_SLACK_WEBHOOK_URL if you've set one — useful alongside email, or on its own:

Both include:

Optional: feedback page for Blade-based apps

If your app renders views (as opposed to being a pure API), you can let visitors tell you what they were doing when the error happened. Laravel already looks for resources/views/errors/500.blade.php to render on any 500 — this package ships one with a short feedback form wired up to it:

Publish it:

This places 500.blade.php in resources/views/errors/. If you already have one there, move it aside first — publishing won't overwrite an existing file.

When a visitor submits the form, a second notification is sent with their description appended to the original error message. Feel free to restyle the page to match your app — just don't change the form's action or remove any of the hidden inputs, since the notification depends on them.

Skip this section entirely for API-only apps, queue workers, or anything without a browser in the loop — the email/Slack notification above already works without it.

Turning off auto-reporting

If you'd rather decide yourself which exceptions get reported (e.g. skip 404s, only report from certain modules), set NOTIFIER_AUTO_REPORT=false in your .env file and call Helper::getError() yourself wherever you want — it's safe to call multiple times on the same exception, it will only ever send once.

Configuration

All of these are read from .env; publish the config file with the command above if you'd rather set them in config/notifier.php directly.

Disable instant notification

By default, the package notifies you the moment the error happens, before the visitor has a chance to describe it. Disable that with:

Send email to multiple recipients

Change the redirect page after the feedback form is submitted

Defaults to the home page (/).

Change how many stack trace frames are reported

Defaults to 3 frames beyond the exception's own file/line. Set to 0 to report just the exception's own file/line with no additional frames.

Queue notifications

Both channels queue by default so a slow mail/Slack request never blocks the one throwing the error — disable it if you'd rather they send inline.

Trying it out

Add a route that throws, then hit it in your browser (with APP_DEBUG=false so Laravel's own error page doesn't take over):

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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


All versions of laravel-error-notifier with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/http Version ^10.0|^11.0|^12.0|^13.0
illuminate/notifications Version ^10.0|^11.0|^12.0|^13.0
illuminate/queue Version ^10.0|^11.0|^12.0|^13.0
illuminate/routing Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
spatie/laravel-package-tools Version ^1.16
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 jgodstime/laravel-error-notifier contains the following files

Loading the files please wait ...