Download the PHP package nikolaymurha/laravel-email-exceptions without Composer

On this page you can find all versions of the php package nikolaymurha/laravel-email-exceptions. 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-email-exceptions

Laravel 5.x Email Exceptions

Build Status Coverage Status

The Laravel 5 Email Exceptions package, based on this excellent cakephp package (https://github.com/ebrigham1/cakephp-error-email), is designed to give developers an easy way to email debug information to themselves whenever an exception is thrown in their application. Information provided by default is:

Screenshot

Table of Contents

Installation

You can install this plugin into your laravel 5.x application using composer.

Run the following command

After updating composer, add the service provider to the providers array in config/app.php

If you are in laravel >= 5.5 you can skip adding the provider to config/app.php as it will be auto-discovered

Then in app/Exceptions/Handler.php replace

with

Configuration

To publish the config file and view run the following command

That will create a config file for you in config/laravelEmailExceptions.php and a view in resources/views/vendor/laravelEmailExceptions/emailExceptions.blade.php

Default configuration:

Note: the dontReport variable from app/Exceptions/Handler.php file will also not be emailed as it's assumed if they are not important enough to log then they also are not important enough to email

Important: You must fill out a toEmailAddress and fromEmailAddress or you will not receive emails.

Basic Usage

Basic Config

Update your config values in config/laravelEmailExceptions.php

Throttling

Both throttling and global throttling are put in place in an attempt to prevent spam to the dev team. Throttling works by creating a unique cache key made from exception class + exception message + exception code. Its aim is to prevent duplicate exceptions from being reported via email giving the team time to fix them before they are reported again.

Global Throttling

Global throttling is a similar idea except it's put in place to prevent more then a certain number of emails going out within a given time period. This should typically only be necessary for an app wide failure ex major portions of the site are down so many varied types of exceptions are coming in from all directions.

Advanced Usage

Changing the view

If you published your view using the command above you will be able to change the look of the exception email by modifying your view in resources/views/vendor/laravelEmailExceptions/emailException.blade.php

Adding Arbitrary don't email logic

If you need more complicated logic then just checking instanceof against the thrown exception there is a convenient hook for adding arbitrary logic to decide if an exception should be emailed.

In app/Exceptions/Handler.php implement the function appSpecificDontEmail(Exception $exception) ex.

Gotchas

If you're having trouble getting this working first make sure you have configured your application to send mail correctly. One of the easiest ways to get mail up and running is by signing up for a free account on mailtrap.io. Once you've done that you'll have to update your .env file with values like these replacing the username and password with those listed in your demo inbox

Bugs and Feedback

http://github.com/abrigham1/laravel-email-exceptions/issues

License

Copyright (c) 2017 Aaron Brigham

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


All versions of laravel-email-exceptions with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
illuminate/support Version ^6.0|^7.0|^8.0|^9.0|^10.0
tijsverkoyen/css-to-inline-styles Version ^2.2.6
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 nikolaymurha/laravel-email-exceptions contains the following files

Loading the files please wait ....