Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Whoops | 13,025 | 38,796 | 1,846 | 2 months ago | 74 | March 06, 2023 | 5 | mit | PHP | |
PHP errors for cool kids | ||||||||||
Collision | 4,338 | 19,759 | 968 | 2 days ago | 96 | August 07, 2023 | 8 | mit | PHP | |
💥 Collision is a beautiful error reporting tool for command-line applications | ||||||||||
Bugsnag Laravel | 827 | 431 | 34 | 5 months ago | 66 | May 20, 2022 | 9 | mit | PHP | |
Bugsnag notifier for the Laravel PHP framework. Monitor and report Laravel errors. | ||||||||||
Vform | 550 | 180 | 7 | 2 years ago | 50 | October 28, 2021 | 1 | mit | TypeScript | |
Handle Laravel-Vue forms and validation with ease. | ||||||||||
Flare Client Php | 479 | 2,408 | 2 | a year ago | 28 | August 09, 2022 | 1 | mit | PHP | |
Send PHP errors to Flare | ||||||||||
Laravel Log Enhancer | 342 | 1 | 3 | 7 months ago | 12 | February 16, 2022 | mit | PHP | ||
Make debugging easier by adding more data to your laravel logs (Laravel 5.6+) | ||||||||||
Framework | 233 | 113 | 115 | 23 days ago | 147 | September 29, 2022 | 5 | mit | PHP | |
This repository contains the core code of Laravel Zero | ||||||||||
Lapse | 172 | 5 years ago | 15 | August 17, 2018 | 2 | mit | PHP | |||
Laravel Self Hosted Tiny Error Tracking System With Notifications | ||||||||||
Laravel Nullable | 100 | 4 | 7 months ago | 12 | March 09, 2022 | 1 | mit | PHP | ||
Functional programming paradigms in laravel to avoid run-time errors. | ||||||||||
Mailchimp | 92 | 9 | 2 | 2 months ago | 28 | April 06, 2023 | mit | PHP | ||
Mailchimp API v3 wrapper, includes Laravel support. |
PHP errors for cool kids
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.
If you use Laravel 4, Laravel 5.5+ or Mezzio, 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 3, CakePHP 4, Zend 2, Zend 3, Yii 1, FuelPHP, Slim, Pimple, Laminas, or any framework consuming StackPHP middlewares or PSR-7 middlewares.
If you are not using any of these frameworks, here's a very simple way to install:
Use Composer to install Whoops into your project:
composer require filp/whoops
Register the pretty handler in your code:
$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.
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.
You may also collect the HTML generated to process it yourself:
$whoops = new \Whoops\Run;
$whoops->allowQuit(false);
$whoops->writeToOutput(false);
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$html = $whoops->handleException($e);
whoops currently ships with the following built-in handlers, available in the Whoops\Handler
namespace:
PrettyPageHandler
- Shows a pretty error page when something goes pants-upPlainTextHandler
- Outputs plain text message for use in CLI applicationsCallbackHandler
- 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.
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.