2017 © Pedro Peláez
 

library whoops

php error handling for cool kids

image

filp/whoops

php error handling for cool kids

  • Saturday, June 30, 2018
  • by filp
  • Repository
  • 205 Watchers
  • 7577 Stars
  • 17,785,659 Installations
  • PHP
  • 1166 Dependents
  • 24 Suggesters
  • 473 Forks
  • 33 Open issues
  • 46 Versions
  • 13 % Grown

The README.md

whoops

PHP errors for cool kids, (*1)

Total Downloads Latest Version Reference Status Dependency Status Build Status Scrutinizer Quality Score Code Coverage, (*2)


Whoops!, (*3)

whoops is an error handler framework for PHP. Out-of-the-box, it provides a pretty error interface that helps you debug your web projects, but at heart it's a simple yet powerful stacked error handling system., (*4)

Features

  • Flexible, stack-based error handling
  • Stand-alone library with (currently) no required dependencies
  • Simple API for dealing with exceptions, trace frames & their data
  • Includes a pretty rad error page for your webapp projects
  • Includes the ability to open referenced files directly in your editor and IDE
  • Includes handlers for different response formats (JSON, XML, SOAP)
  • Easy to extend and integrate with existing libraries
  • Clean, well-structured & tested code-base

Sponsors

Blackfire.io, (*5)

Installing

If you use Laravel 4 or Laravel 5.5+, you already have Whoops. There are also community-provided instructions on how to integrate Whoops into Silex 1, Silex 2, Phalcon, Laravel 3, Laravel 5, CakePHP 2, CakePHP 3, Zend 2, Zend 3, Yii 1, FuelPHP, Slim, Pimple, Laminas, or any framework consuming StackPHP middlewares or PSR-7 middlewares., (*6)

If you are not using any of these frameworks, here's a very simple way to install:, (*7)

  1. Use Composer to install Whoops into your project:, (*8)

    composer require filp/whoops
    
  2. Register the pretty handler in your code:, (*9)

    $whoops = new \Whoops\Run;
    $whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
    $whoops->register();
    

For more options, have a look at the example files in examples/ to get a feel for how things work. Also take a look at the API Documentation and the list of available handlers below., (*10)

You may also want to override some system calls Whoops does. To do that, extend Whoops\Util\SystemFacade, override functions that you want and pass it as the argument to the Run constructor., (*11)

Available Handlers

whoops currently ships with the following built-in handlers, available in the Whoops\Handler namespace:, (*12)

  • PrettyPageHandler - Shows a pretty error page when something goes pants-up
  • PlainTextHandler - Outputs plain text message for use in CLI applications
  • CallbackHandler - Wraps a closure or other callable as a handler. You do not need to use this handler explicitly, whoops will automatically wrap any closure or callable you pass to Whoops\Run::pushHandler
  • JsonResponseHandler - Captures exceptions and returns information on them as a JSON string. Can be used to, for example, play nice with AJAX requests.
  • XmlResponseHandler - Captures exceptions and returns information on them as a XML string. Can be used to, for example, play nice with AJAX requests.

You can also use pluggable handlers, such as SOAP handler., (*13)

Authors

This library was primarily developed by Filipe Dobreira, and is currently maintained by Denis Sokolov. A lot of awesome fixes and enhancements were also sent in by various contributors. Special thanks to Graham Campbell and Markus Staab for continuous participation., (*14)

This software includes Prettify, licensed under Apache License 2.0. It is bundled only as a performance optimization., (*15)

The Versions

30/06 2018

dev-master

9999999-dev https://filp.github.io/whoops/

php error handling for cool kids

  Sources   Download

MIT

The Requires

 

The Development Requires

library zf2 exception error handling throwable whoops

03/03 2018

2.2.0

2.2.0.0 https://filp.github.io/whoops/

php error handling for cool kids

  Sources   Download

MIT

The Requires

 

The Development Requires

library exception error handling throwable whoops

23/11 2017

2.1.14

2.1.14.0 https://filp.github.io/whoops/

php error handling for cool kids

  Sources   Download

MIT

The Requires

 

The Development Requires

library exception error handling throwable whoops

17/11 2017

2.1.13

2.1.13.0 https://filp.github.io/whoops/

php error handling for cool kids

  Sources   Download

MIT

The Requires

 

The Development Requires

library exception error handling throwable whoops

15/10 2017

2.1.12

2.1.12.0 https://filp.github.io/whoops/

php error handling for cool kids

  Sources   Download

MIT

The Requires

 

The Development Requires

library exception error handling throwable whoops

15/10 2017

2.1.11

2.1.11.0 https://filp.github.io/whoops/

php error handling for cool kids

  Sources   Download

MIT

The Requires

 

The Development Requires

library exception error handling throwable whoops

03/08 2017

2.1.10

2.1.10.0 https://filp.github.io/whoops/

php error handling for cool kids

  Sources   Download

MIT

The Requires

 

The Development Requires

library zf2 exception error handling whoops

03/06 2017

2.1.9

2.1.9.0 https://filp.github.io/whoops/

php error handling for cool kids

  Sources   Download

MIT

The Requires

 

The Development Requires

library zf2 exception error handling whoops

07/03 2017

2.1.8

2.1.8.0 https://filp.github.io/whoops/

php error handling for cool kids

  Sources   Download

MIT

The Requires

 

The Development Requires

library zf2 exception error handling whoops

02/03 2017

2.1.7

2.1.7.0 https://filp.github.io/whoops/

php error handling for cool kids

  Sources   Download

MIT

The Requires

 

The Development Requires

library zf2 exception error handling whoops

18/02 2017

2.1.6

2.1.6.0 https://filp.github.io/whoops/

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php ^5.5.9 || ^7.0

 

The Development Requires

library zf2 exception error handling whoops

26/12 2016

2.1.5

2.1.5.0 https://filp.github.io/whoops/

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php ^5.5.9 || ^7.0

 

The Development Requires

library zf2 exception error handling whoops

11/10 2016

2.1.4

2.1.4.0 https://filp.github.io/whoops/

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php ^5.5.9 || ^7.0

 

The Development Requires

library zf2 exception error handling whoops

06/05 2016

2.1.3

2.1.3.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

library zf2 exception error handling whoops

07/04 2016

2.1.2

2.1.2.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

library zf2 exception error handling whoops

05/04 2016

2.1.1

2.1.1.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

library zf2 exception error handling whoops

13/03 2016

2.1.0

2.1.0.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

library zf2 exception error handling whoops

06/01 2016

2.0.0

2.0.0.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

library zf2 exception error handling whoops

15/12 2015

2.0.0-alpha2

2.0.0.0-alpha2 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

library zf2 exception error handling whoops

13/12 2015

2.0.0-alpha1

2.0.0.0-alpha1 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

 

The Development Requires

library zf2 exception error handling whoops

22/11 2015

1.1.9

1.1.9.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library zf2 exception error handling whoops silex-provider

22/11 2015

1.1.8

1.1.8.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0 <6

 

The Development Requires

library zf2 exception error handling whoops silex-provider

29/06 2015

1.x-dev

1.9999999.9999999.9999999-dev https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library zf2 exception error handling whoops silex-provider

29/06 2015

1.1.10

1.1.10.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library zf2 exception error handling whoops silex-provider

29/06 2015

1.1.7

1.1.7.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library zf2 exception error handling whoops silex-provider

29/05 2015

1.1.6

1.1.6.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library zf2 exception error handling whoops silex-provider

30/03 2015

1.1.5

1.1.5.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library zf2 exception error handling whoops silex-provider

17/02 2015

1.1.4

1.1.4.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library zf2 exception error handling whoops silex-provider

26/10 2014

1.1.3

1.1.3.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library zf2 exception error handling whoops silex-provider

11/07 2014

1.1.2

1.1.2.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library zf2 exception error handling whoops silex-provider

13/05 2014

1.1.1

1.1.1.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library zf2 exception error handling whoops silex-provider

28/04 2014

1.1.0

1.1.0.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library zf2 exception error handling whoops silex-provider

31/03 2014

1.1.0-rc

1.1.0.0-RC https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library zf2 exception error handling whoops silex-provider

04/12 2013

1.0.10

1.0.10.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library zf2 exception error handling whoops silex-provider

28/10 2013

1.0.9

1.0.9.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library zf2 exception error handling whoops silex-provider

06/08 2013

1.0.8

1.0.8.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library zf2 exception error handling whoops silex-provider

10/06 2013

1.0.7

1.0.7.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library zf2 exception error handling whoops silex-provider

11/05 2013

1.0.6

1.0.6.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library zf2 exception error handling whoops silex-provider

10/05 2013

1.0.5

1.0.5.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library zf2 exception error handling whoops silex-provider

24/04 2013

1.0.4

1.0.4.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library zf2 exception error handling whoops silex-provider

23/04 2013

1.0.3

1.0.3.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library zf2 exception error handling whoops silex-provider

12/04 2013

dev-feature/frame-args

dev-feature/frame-args https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library exception error handling whoops silex-provider

12/04 2013

1.0.1

1.0.1.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library exception error handling whoops silex-provider

09/04 2013

1.0.0

1.0.0.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library exception error handling whoops silex-provider

17/03 2013

0.9.0

0.9.0.0 https://github.com/filp/whoops

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library exception error handling whoops silex-provider

15/03 2013

0.8.4

0.8.4.0 https://github.com/filp/damnit

php error handling for cool kids

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

library exception error handling silex-provider damnit