2017 © Pedro Peláez
 

library exceptions

Provides A Powerful Error Response System For Both Development And Production

image

graham-campbell/exceptions

Provides A Powerful Error Response System For Both Development And Production

  • Friday, March 2, 2018
  • by graham-campbell
  • Repository
  • 9 Watchers
  • 431 Stars
  • 382,912 Installations
  • PHP
  • 11 Dependents
  • 1 Suggesters
  • 49 Forks
  • 4 Open issues
  • 49 Versions
  • 7 % Grown

The README.md

Laravel Exceptions

Laravel Exceptions was created by, and is maintained by Graham Campbell, and provides a powerful error response system for both development and production for Laravel. It optionally utilises the Whoops package for the development error pages. Feel free to check out the change log, releases, security policy, license, code of conduct, and contribution guidelines., (*1)

Banner, (*2)

Build Status StyleCI Status Software License Packagist Downloads Latest Version , (*3)

Installation

This version requires PHP 7.4-8.3 and supports Laravel 8-11., (*4)

Exceptions L5.5 L5.6 L5.7 L5.8 L6 L7 L8 L9 L10 L11
11.3 :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :x: :x: :x: :x: :x: :x:
12.1 :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :x: :x: :x: :x: :x:
13.1 :x: :x: :x: :x: :white_check_mark: :x: :x: :x: :x: :x:
14.1 :x: :x: :x: :x: :x: :white_check_mark: :white_check_mark: :x: :x: :x:
15.2 :x: :x: :x: :x: :x: :white_check_mark: :white_check_mark: :white_check_mark: :x: :x:
16.0 :x: :x: :x: :x: :x: :x: :white_check_mark: :white_check_mark: :x: :x:
17.2 :x: :x: :x: :x: :x: :x: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:

To get the latest version, simply require the project using Composer:, (*5)

$ composer require "graham-campbell/exceptions:^17.2"

Once installed, if you are not using automatic package discovery, then you need to register the GrahamCampbell\Exceptions\ExceptionsServiceProvider service provider in your config/app.php., (*6)

You then MUST change your App\Exceptions\Handler to extend GrahamCampbell\Exceptions\ExceptionHandler., (*7)

Whoops Support

If you want to have the debug error pages available, you're going to need to require Whoops:, (*8)

$ composer require "filp/whoops:^2.15" --dev

Our debug displayer will automatically detect the presence of Whoops. Feel free to go and have a read of our source code to give you a better understanding of how this works., (*9)

Configuration

Laravel Exceptions supports optional configuration., (*10)

To get started, you'll need to publish all vendor assets:, (*11)

$ php artisan vendor:publish

This will create a config/exceptions.php file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases., (*12)

There are a few config options:, (*13)

Exception Transformers

This option ('transformers') defines each of the exception transformers setup for your application. This allows you to turn your exceptions into other exceptions such as exceptions for perfect results when passed to the displayers. Note that this list is processed in order and subsequent transformers can still modify the results of previous ones if required., (*14)

Exception Displayers

This option ('displayers') defines each of the exception displayers setup for your application. These displayers are sorted by priority. Note that when we are in debug mode, we will select the first valid displayer from the list, and when we are not in debug mode, we'll filter out all verbose displayers, then select the first valid displayer from the new list., (*15)

Displayer Filters

This option ('filters') defines each of the filters for the displayers. This allows you to apply filters to your displayers in order to work out which displayer to use for each exception. This includes things like content type negotiation., (*16)

Default Displayer

This option ('default') defines the default displayer for your application. This displayer will be used if your filters have filtered out all the displayers, otherwise leaving us unable to displayer the exception., (*17)

Exception Levels

This option ('levels') defines the log levels for the each exception. If an exception passes an instance of test for each key, then the log level used is the value associated with each key., (*18)

Usage

There is currently no usage documentation for Laravel Exceptions, but we are open to pull requests., (*19)

Security

If you discover a security vulnerability within this package, please send an email to security@tidelift.com. All security vulnerabilities will be promptly addressed. You may view our full security policy here., (*20)

License

Laravel Exceptions is licensed under The MIT License (MIT)., (*21)

For Enterprise

Available as part of the Tidelift Subscription, (*22)

The maintainers of graham-campbell/exceptions and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more., (*23)

The Versions

02/03 2018

dev-master

9999999-dev

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

02/03 2018

v11.0.0

11.0.0.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

02/01 2018

10.1.x-dev

10.1.9999999.9999999-dev

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

02/01 2018

v10.1.0

10.1.0.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

10/09 2017

9.4.x-dev

9.4.9999999.9999999-dev

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

10/09 2017

v9.4.0

9.4.0.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

06/08 2017

v10.0.0

10.0.0.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

21/01 2017

v9.3.0

9.3.0.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

01/01 2017

v9.2.0

9.2.0.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

19/08 2016

v9.1.0

9.1.0.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

05/08 2016

v9.0.0

9.0.0.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

31/07 2016

v8.8.0

8.8.0.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

31/07 2016

8.8.x-dev

8.8.9999999.9999999-dev

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

21/07 2016

v8.7.0

8.7.0.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

14/07 2016

v8.6.2

8.6.2.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

04/06 2016

v8.6.1

8.6.1.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

03/06 2016

v8.6.0

8.6.0.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

20/05 2016

v8.5.0

8.5.0.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

26/04 2016

v8.4.0

8.4.0.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

27/03 2016

v8.3.6

8.3.6.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

27/03 2016

v8.3.5

8.3.5.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

27/03 2016

v8.3.4

8.3.4.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

27/03 2016

v8.3.3

8.3.3.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

30/01 2016

v8.3.2

8.3.2.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

21/01 2016

v8.3.1

8.3.1.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

21/01 2016

v8.3.0

8.3.0.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

15/01 2016

v8.2.0

8.2.0.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

07/01 2016

v8.1.0

8.1.0.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

05/01 2016

v8.0.0

8.0.0.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

11/12 2015

v7.0.0

7.0.0.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

11/12 2015

7.0.x-dev

7.0.9999999.9999999-dev

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

09/12 2015

v6.1.0

6.1.0.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

09/12 2015

6.1.x-dev

6.1.9999999.9999999-dev

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

22/11 2015

v6.0.0

6.0.0.0

Provides A Powerful Error Response System For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

14/11 2015

v5.1.0

5.1.0.0

Provides Pretty Error Pages For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

14/11 2015

5.1.x-dev

5.1.9999999.9999999-dev

Provides Pretty Error Pages For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

06/10 2015

v5.0.0

5.0.0.0

Provides Pretty Error Pages For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

25/07 2015

v4.0.0

4.0.0.0

Provides Pretty Error Pages For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

25/07 2015

4.0.x-dev

4.0.9999999.9999999-dev

Provides Pretty Error Pages For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

06/07 2015

v3.2.0

3.2.0.0

Provides Pretty Error Pages For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

06/07 2015

3.2.x-dev

3.2.9999999.9999999-dev

Provides Pretty Error Pages For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

26/06 2015

v3.1.0

3.1.0.0

Provides Pretty Error Pages For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

01/06 2015

v3.0.1

3.0.1.0

Provides Pretty Error Pages For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

29/05 2015

v3.0.0

3.0.0.0

Provides Pretty Error Pages For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

26/05 2015

v2.0.1

2.0.1.0

Provides Pretty Error Pages For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

26/05 2015

2.0.x-dev

2.0.9999999.9999999-dev

Provides Pretty Error Pages For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

21/05 2015

v2.0.0

2.0.0.0

Provides Pretty Error Pages For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

04/02 2015

v1.0.0

1.0.0.0

Provides Pretty Error Pages For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions

04/02 2015

1.0.x-dev

1.0.9999999.9999999-dev

Provides Pretty Error Pages For Both Development And Production

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell

laravel framework errors exception graham campbell grahamcampbell error exceptions whoops laravel exceptions laravel-exceptions