eonx-com/easy-error-handler
Larablocks Analysis
eonx-com/easy-error-handler works with any PHP project: the latest release (7.0.0, Dec 2, 2026) doesn't depend on Laravel.
Laravel 5 and 6 in earlier releases.
Recommendation checks
Solid choiceSolid choice: maintained and up to date, meets 2 of 3 checks; below the bar for Recommended on use.
- Released in the last 12 months (Dec 2, 2026)
- 10,882 downloads a month (at least 10,000)
- 1 GitHub star (needs 100)
State
Actively maintained- Last stable release: Dec 2, 2026.
- 44 releases in the last 12 months.
- First released: May 25, 2020.
- Monthly downloads: 10,882.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 4, 2026.
| Install | |
|---|---|
composer require eonx-com/easy-error-handler |
|
| Latest Version: | 7.0.0 |
| PHP: | ^8.4 |
| Older releases: | 5 · 6 |
| License: | MIT |
| Last Updated: | Dec 3, 2026 |
| Links: | GitHub · Packagist |
---eonx_docs--- title: Introduction weight: 0 ---eonx_docs---
Introduction
The EasyErrorHandler package allows you to easily build informative HTTP responses and reports in response to exceptions in your applications.
Using the EasyErrorHandler package, you can:
- Define a common structure for exceptions
- Generate consistent error responses for unhandled exceptions within your code
- Report exceptions to the main logging channel of your application (by default) or to custom destinations
- Automatically notify Bugsnag based on the log level of the exception (by default, if used with easy-bugsnag)
Usage overview
The package will work with any PHP exception, but it provides several tailored Exceptions for common error conditions, e.g. 404 Not Found errors.
The ErrorHandler provides the main methods to build HTTP responses for exceptions and to report on exceptions (e.g. logging).
HTTP responses are built with error response builders. These builders progressively build the response body, status code and headers. You can implement your own error response builders. The HTTP response body is formatted as JSON by default, but you can implement your own formatter (see Response format).
Error reporters report on exceptions. The default error reporter logs to the main logging channel of your application, but you can implement custom error reporters, e.g. to send email.
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 7.0.0 | ^8.4 | MIT | |
| 6.30.0 | ^8.2 | MIT | |
| 6.29.0 | ^8.2 | MIT | |
| 6.28.1 | ^8.2 | MIT | |
| 6.28.0 | ^8.2 | MIT | |
| 6.27.0 | ^8.2 | MIT | |
| 6.26.1 | ^8.2 | MIT | |
| 6.26.0 | ^8.2 | MIT | |
| 6.25.2 | ^8.2 | MIT | |
| 6.25.1 | ^8.2 | MIT | |
| 6.25.0 | ^8.2 | MIT | |
| 6.24.1 | ^8.2 | MIT | |
| 6.24.0 | ^8.2 | MIT | |
| 6.23.1 | ^8.2 | MIT | |
| 6.23.0 | ^8.2 | MIT | |
| 6.22.5 | ^8.2 | MIT | |
| 6.22.4 | ^8.2 | MIT | |
| 6.22.3 | ^8.2 | MIT | |
| 6.22.2 | ^8.2 | MIT | |
| 6.22.1 | ^8.2 | MIT | |
| 6.22.0 | ^8.2 | MIT | |
| 6.21.0 | ^8.2 | MIT | |
| 6.20.1 | ^8.2 | MIT | |
| 6.20.0 | ^8.2 | MIT | |
| 6.19.4 | ^8.2 | MIT | |
| 6.19.3 | ^8.2 | MIT | |
| 6.19.2 | ^8.2 | MIT | |
| 6.19.1 | ^8.2 | MIT | |
| 6.19.0 | ^8.2 | MIT | |
| 6.18.5 | ^8.2 | MIT |
Showing the latest 30 of 460. See every release on Packagist
Pre-releases (39)
| Version | Released | PHP | License |
|---|---|---|---|
| 7.0.0-alpha.2 | ^8.4 | MIT | |
| 7.0.0-alpha.1 | ^8.4 | MIT | |
| 6.0.0-rc.1 | ^8.2 | MIT | |
| 6.0.0-alpha.5 | ^8.2 | MIT | |
| 6.0.0-alpha.4 | ^8.2 | MIT | |
| 6.0.0-alpha.3 | ^8.2 | MIT | |
| 6.0.0-alpha.2 | ^8.2 | MIT | |
| 6.0.0-alpha | ^8.2 | MIT | |
| 4.1.0-rc1 | ^8.1 | MIT | |
| 3.4.24-beta1 | ^7.2 || | MIT | |
| 3.2.0-alpha4 | ^7.2 | MIT | |
| 3.2.0-alpha3 | ^7.2 | MIT | |
| 3.2.0-alpha2 | ^7.2 | MIT | |
| 3.2.0-alpha1 | ^7.2 | MIT | |
| 3.1.5-alpha8 | ^7.2 | MIT | |
| 3.1.5-alpha7 | ^7.2 | MIT | |
| 3.1.5-alpha6 | ^7.2 | MIT | |
| 3.1.5-alpha5 | ^7.2 | MIT | |
| 3.1.5-alpha4 | ^7.2 | MIT | |
| 3.1.5-alpha3 | ^7.2 | MIT | |
| 3.1.5-alpha2 | ^7.2 | MIT | |
| 3.1.5-alpha1 | ^7.2 | MIT | |
| 3.1.2-alpha4 | ^7.2 | MIT | |
| 3.1.2-alpha3 | ^7.2 | MIT | |
| 3.1.2-alpha2 | ^7.2 | MIT | |
| 3.1.2-alpha1 | ^7.2 | MIT | |
| 3.1.1-alpha2 | ^7.2 | MIT | |
| 3.1.1-alpha1 | ^7.2 | MIT | |
| 3.1.0-rc2 | ^7.2 | MIT | |
| 3.1.0-rc1 | ^7.2 | MIT |
Showing the latest 30 of 39. See every release on Packagist