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

This package sends you email and slack notification whenever 500 internal server errors happens in your application. This package only works for laravel 8, 9 and 10 This package works for both API and view based laravel project

alt text

What the package sends as a notification

How to install

In your /app/Exceptions/Handler.php file, in the register method, add \ErrorNotifier\Notify\Helper::getError($e); this must be inside reportable callback

Disable Instant Notification

By default this package sends notification immediately the error occured i.e without waiting for users description of the error, you can disable this by adding NOTIFIER_INSTANT=false in your .env file

Publishing the vendor files

By default, Laravel displays the 500 error page in your /views/errors/500.blade.php file when a 500 error occurs in your application

This package places the 500.blade.php file in the /views/errors/ folder after you publish the vendor file

If you already have a 500.blade.php file in your /views/errors folder and you want to use this package; you should remove or move it to another folder.

Publish the vendor files if your app is not API

Now the vendor files are published in their respective paths

Let's Test

Setup your email driver

To setup your email driver, you can use mailtrap for test purpose.

Disable notification to email

To disable notification to email, set NOTIFIER_EMAIL= in your .env file

Add your slack webhook (Optional)

To setup your slack webhook url

We are good 😊

To test this, simply add $array['key1'] = 'john'; $data = $array['key2']; in one of your routes, then hit the route In your browser.

Notice that we are trying to access an array with key2 that doesn’t exist, this will throw an error and the package will send the error as notification to your email as well as the trace.

Also, you must turn APP_DEBUG=false and LOG_LEVEL=debug in your .env file

You should see this

alt text

If you don’t have NOTIFIER_INSTANT=false in your .env file, the package sends instant notification to the setup email and slack channel

Also, after user submits the form, the package sends another notification with user error description message.

Modify Page Design

You can modify the style for the page to suit your taste,

Note: Be careful not to change the form route and hidden inputs.

A notification email is sent to the email specified in the laravel environment variable (MAIL_FROM_ADDRESS) in your .env file

You can change this by adding NOTIFIER_EMAIL="[email protected]" in your .env file.

Send Email to Multiple Recipients

You can send notification to multiple recipients by adding multiple emails as a string in comma separated format without space

Change Redirect Page URL

You can change the page user is taken to after submitting the form, by default it goes to the home page (/)

NOTIFIER_REDIRECT_URL='/thank-you'

Exciting upgrade coming. Stay tuned!

How can I thank you?

Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter, LinkedIn or HackerNews? Spread the word!

Don't forget to follow me on twitter!

Thanks! Godstime John.


All versions of laravel-error-notifier with dependencies

PHP Build Version
Package Version
No informations.
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 ....