PHPackages                             linyuee/laravel-exception - 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. linyuee/laravel-exception

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

linyuee/laravel-exception
=========================

laravel exception handler

1.0.1(8y ago)045MITPHPPHP &gt;=5.4

Since Nov 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/linyuee/laravel-exception)[ Packagist](https://packagist.org/packages/linyuee/laravel-exception)[ RSS](/packages/linyuee-laravel-exception/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

\##基于laravel框架的自定义异常模块 laravel框架是近两年兴起的一个框架，但是有一个很蛋疼的问题，laravel的异常和错误都会被渲染成一个html网页输出，这样前端 很难解析，因此我封装了一个自定义异常模块，可以让laravel框架的异常很报错全部以统一的json格式输出。

\##使用教程 1、使用composer下载这个包

```
composer require linyuee/laravel-exception

```

2、在laravel框架的app\\Exceptions\\Handler.php文件中引入

修改app\\Exceptions\\Handler.php的report方法

```
public function report(Exception $exception)
    {
         if (PHP_SAPI == 'cli'){
            parent::report($exception);
         }else{
            \Linyuee\ExceptionHandler::exception_handler($exception);
         }

    }

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity61

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 ~3 days

Total

4

Last Release

3084d ago

Major Versions

0.0.1.x-dev → 1.0.02017-11-30

PHP version history (2 changes)0.0.1PHP &gt;=5.3

1.0.1PHP &gt;=5.4

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/linyuee-laravel-exception/health.svg)

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

###  Alternatives

[overtrue/laravel-query-logger

A dev tool to log all queries for laravel application.

413307.5k6](/packages/overtrue-laravel-query-logger)[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14642.7k1](/packages/guanguans-laravel-exception-notify)[regulus/activity-log

A clean and simple Laravel 5 activity logger for monitoring user activity on a website or web application.

164220.1k2](/packages/regulus-activity-log)

PHPackages © 2026

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