Skip to content
/ csi Public

Custom PHP exception management library for Laravel projects

License

Notifications You must be signed in to change notification settings

ixudra/csi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ixudra/csi

Latest Version on Packagist license StyleCI Total Downloads

Custom PHP Crash Scene Investigation (CSI) library for the Laravel 5 framework - developed by Ixudra.

This package can be used by anyone at any given time, but keep in mind that it is optimized for my personal custom workflow. It may not suit your project perfectly and modifications may be in order.

Installation

Pull this package in through Composer:

    {
        "require": {
            "ixudra/csi": "2.*"
        }
    }

Add the service provider to your config/app.php file:

    providers     => array(

        //...
        Ixudra\Csi\CsiServiceProvider::class,

    )

Add your API key to your .env file:

    CSI_BASE_URL=ixudra_api_url
    CSI_PUBLIC_KEY=your_api_key

Add the error handling instructions to your bootstrap/app.php file:

$app->singleton(
    Illuminate\Contracts\Debug\ExceptionHandler::class,
    Ixudra\Csi\Exceptions\CsiExceptionHandler::class,
    App\Exceptions\Handler::class
);

Usage

In order to use the package, you need to tell your app to send exception information to your portal of choice. This will happen automatically once you have completed the setup mentioned above. Once an exception is registered, the web portal administrator will receive the exception information as soon as he logs in and will take action as soon as possible.

Configuration

You can also publish the package's configuration files using the artisan command:

    php artisan config:publish ixudra/csi

This will allow you to change the web portal URL as well as browser and platform information that is used by the package.

About

Custom PHP exception management library for Laravel projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages