Whoops! PHP Errors for Cool Kids

A small library, available as a Composer package, that helps you handle errors and exceptions across your PHP projects

Whoops is a small library, available as a Composer package, that helps you handle errors and exceptions across your PHP projects. Out of the box, you get a sleek, intuitive and informative error page each time something goes pants-up in your application. Even better, under all that is a very straight-forward, but flexible, toolset for dealing with errors in a way that makes sense for whatever it is that you’re doing.

 

The library’s main features are:

  • Detailed and intuitive page for errors and exceptions
  • Code view for all frames
  • Focus on error/exception analysis through the use of custom, simple middle-ware/handlers
  • Support for JSON and AJAX requests
  • Included providers for Silex and Zend projects through the bundled providers, and included as part of the Laravel 4 core
  • Clean, compact, and tested code-base, with no extra dependencies
Whoops achieves this through a system of stacked handlers. You tell Whoops which handlers you want to use (you can choose from the included handlers or make your own), and if something happens, all the handlers are given, in order, a chance do to something – this can be anything from analyzing the error (Whoops makes it easier to extract meaningful information from an error or exception), to displaying helpful error screens (like the built-in PrettyPageHandler, which gives you the cool looking page pictured above).

Lubov Cholakova

Lubov CholakovaLubov has been with DMXzone for 8 years now, contributing to the Content and Sales departments. She is bringing high quality content in the form of daily blog updates, reviews, tutorials, news, newsletters,update emails and extensions' manuals. If you have a product that needs publicity or any other questions about the entire DMXzone community, she is the one you can contact.

See All Postings From Lubov Cholakova >>

Comments

Be the first to write a comment

You must me logged in to write a comment.