2017 © Pedro Peláez
 

library whoops

php error handling for cool kids

image

fiesta/whoops

php error handling for cool kids

  • Saturday, May 14, 2016
  • by youssefhad
  • Repository
  • 1 Watchers
  • 0 Stars
  • 949 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 473 Forks
  • 0 Open issues
  • 35 Versions
  • 0 % 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)

Major version bump

This is documentation for upcoming Whoops version 2. It is currently in its pre-release state, available with a separate, pre-release download tag. For documentation on the stable version, see branch v1., (*5)

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

Installing

If you use Laravel 4, 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 Framework 2, Yii 1, FuelPHP, Slim, Pimple, 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 handers below., (*10)

Available Handlers

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

  • 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., (*12)

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., (*13)

The Versions

14/05 2016

dev-master

9999999-dev 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

14/05 2016

1.2.6

1.2.6.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

02/05 2016

1.2.5

1.2.5.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/02 2016

1.2.4

1.2.4.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

26/01 2016

1.2.3

1.2.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

16/01 2016

1.2.2

1.2.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

07/01 2016

1.2.1

1.2.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

25/12 2015

1.2.0

1.2.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

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