PHPackages                             egeatech/laravel-exceptions - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. egeatech/laravel-exceptions

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

egeatech/laravel-exceptions
===========================

A simple package to better handle Exceptions.

3.0.1(2y ago)24.0k[2 PRs](https://github.com/EgeatechSRL/laravel-exceptions/pulls)1MITPHPPHP ^8.0

Since May 16Pushed 2y ago4 watchersCompare

[ Source](https://github.com/EgeatechSRL/laravel-exceptions)[ Packagist](https://packagist.org/packages/egeatech/laravel-exceptions)[ Docs](https://github.com/EgeatechSRL/laravel-exceptions)[ RSS](/packages/egeatech-laravel-exceptions/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (4)Versions (14)Used By (1)

Laravel Exceptions
==================

[](#laravel-exceptions)

[![Latest Version on Packagist](https://camo.githubusercontent.com/da63aea4834f2b65abe83f85e6380ac711def9a339a158a4e9e52dc3a2877176/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f65676561746563682f6c61726176656c2d657863657074696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/egeatech/laravel-exceptions)[![Total Downloads](https://camo.githubusercontent.com/1c76277b9f973e3d171787f08d903d7ccd41b87811928e17f18ce887215832f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f65676561746563682f6c61726176656c2d657863657074696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/egeatech/laravel-exceptions)

A package to help handling exceptions which may occur in your application.

Installation
------------

[](#installation)

This package supports Laravel 7, 8 and 9 but requires **at least** PHP 8.0 starting from v2.x. PHP 7.4 is supported up to version 1.3.0.

Via Composer

```
$ composer require egeatech/laravel-exceptions
```

Usage
-----

[](#usage)

During the implementation of the business logic of your application, if you wish to throw an exception simply create a new class extending `EgeaTech\LaravelExceptions\Exceptions\ApplicationException`.

After that, create a new translation file inside your `[resources/]lang/en/exceptions` folder: the file must be the snake case version of the exception class name. Keep in mind that at least the English form is required.

Now that we're all set, the base exception class will take care of logging the exception in English given its translation key, leaving to the user the choice to return a translated version of the error to the client or, otherwise, return only the exception key for further processes or custom error messages to be displayed.

Change log
----------

[](#change-log)

Please see the [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits
-------

[](#credits)

- [Egea Tecnologie Informatiche](https://egeatech.com)
- [Marco Guidolin](mailto:m.guidolin@egeatech.com)

License
-------

[](#license)

The software is licensed under MIT. Please see the [LICENSE](LICENSE.md) file for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~107 days

Recently: every ~187 days

Total

10

Last Release

856d ago

Major Versions

1.3.0 → 2.0.02022-11-15

2.0.0 → 3.0.02024-01-09

PHP version history (4 changes)1.0.0PHP &gt;=7.4

1.1.0PHP ^7.4|8

1.1.1PHP ^7.4|^8.0

2.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0513a20b3ff556ac158dc56a13381e56501d2218d2c0dbaacef9410e3c3da462?d=identicon)[marcoguido](/maintainers/marcoguido)

![](https://avatars.githubusercontent.com/u/3874019?v=4)[egeatech](/maintainers/egeatech)[@egeatech](https://github.com/egeatech)

---

Tags

laravelexceptions

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/egeatech-laravel-exceptions/health.svg)

```
[![Health](https://phpackages.com/badges/egeatech-laravel-exceptions/health.svg)](https://phpackages.com/packages/egeatech-laravel-exceptions)
```

###  Alternatives

[bugsnag/bugsnag-laravel

Official Bugsnag notifier for Laravel applications.

90234.6M36](/packages/bugsnag-bugsnag-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[tylercd100/lern

LERN (Laravel Exception Recorder and Notifier) is a Laravel 5 package that will record exceptions into a database and will notify you via Email, Pushover or Slack.

438153.4k3](/packages/tylercd100-lern)[cerbero/exception-handler

Extend Laravel exception handler to define how to handle custom exceptions via service providers.

607.5k](/packages/cerbero-exception-handler)[kitloong/laravel-app-logger

Laravel log for your application

101.2M8](/packages/kitloong-laravel-app-logger)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
