New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

eonx-com/easy-error-handler

Provides customizable ready-to-use error handler for applications
1,154,089 1

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 choice

Solid 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
Maintainer: eonx

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

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

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