Download the PHP package exceptions-center/laravel without Composer
On this page you can find all versions of the php package exceptions-center/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download exceptions-center/laravel
More information about exceptions-center/laravel
Files in exceptions-center/laravel
Package laravel
Short Description An Exception sender for the Exceptions' Center
License MIT
Informations about the package laravel
Laravel Exceptions' Center
Package to send the exceptions to the Exceptions' Center from a Laravel website.
Installation
You can quickly add this package in your application using Composer. Be careful to use the correct version of the package regarding your Laravel application version:
Version
For now, this package supports all Laravel versions from 5.3.
Composer
In a Bash terminal:
Usage
In this section, we will see how to use the current package features. You need to add some lines into your exceptions handler in :
If an error occurred during the sending, the error will be saved in a .
Configuration
You have two different ways to configure your application:
Ways
Using config file
You can access to a part of the available configuration using your file:
Note : don't forget to execute to take the changes into account.
Using published sender
Another way is to publish the exceptions sender to customize all the possible methods. You can generate a file using:
Note : If you chose to publish the exceptions sender, you need to define the 'model' key in the previous app configurations, otherwise the test command won't use your updates.
Customisation
If you defined the configurations (previous step) and published the sender, the config array will be taken into account.
Settings
You need to define the project key, available in the Exceptions' Center website.
Multithreading
The current package allows sending the exceptions using a thread to save execution time. You can enable or disable this feature in the app config file at the key multithreading or in your published ExceptionSender with the multithreading property.
Note : if an error occurred during the starting of the thread, then the exceptions will be sent using cURL.
User information
You can define all the information you want about the user with the methods and . Please, be careful regarding the data you send. Don't forget user's sensitive information should not leave your application, even for debuging. If you are using another auth guardian than the Laravel default Auth, you need to override the method.
Event listener
If you are using an other package that fire events when an exception is caught, then you can use the to handle this event. In your , you just have to add:
where is the event name. This event needs to implement and methods.
Test
You can check whether the package is working with the Artisan command:
Note : Did you execute ?
Architecture
This is the files architecture of the package:
You can generate the previous tree using:
Licence
This package is under the terms of the MIT license.