PHPackages                             yangyifan/exception-helper - 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. yangyifan/exception-helper

ActiveLibrary

yangyifan/exception-helper
==========================

v0.2(8y ago)129PHP

Since Feb 1Pushed 8y ago1 watchersCompare

[ Source](https://github.com/tyua07/exception-helper)[ Packagist](https://packagist.org/packages/yangyifan/exception-helper)[ RSS](/packages/yangyifan-exception-helper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

### 异常帮助类

[](#异常帮助类)

#### 安装

[](#安装)

```
composer require yangyifan/exception-helper:v0.1

```

#### 注意

[](#注意)

```
自定义的异常请写入到 ```App\Exceptions\Handler``` 类的 ```$dontReport``` 属性里面。

use Yangyifan\Exception\InvalidArgumentException;
use Yangyifan\Exception\AppIsTooOldException;
use Yangyifan\Exception\AppNeedToUpdateException;
use Yangyifan\Exception\ForbiddenException;
use Yangyifan\Exception\PayErrorException;
use Yangyifan\Exception\RequestMethodErrorException;
use Yangyifan\Exception\RequestParamErrorException;
use Yangyifan\Exception\ServerErrorException;
use Yangyifan\Exception\TimeOutException;
use Yangyifan\Exception\ToManyRequestsException;
use Yangyifan\Exception\UnauthorizedException;
use Yangyifan\Exception\UserNotExistsException;

/**
 * A list of the exception types that should not be reported.
 *
 * @var array
 */
protected $dontReport = [
    HttpException::class,
    ModelNotFoundException::class,
    AppIsTooOldException::class,
    AppNeedToUpdateException::class,
    ForbiddenException::class,
    InvalidArgumentException::class,
    PayErrorException::class,
    RequestMethodErrorException::class,
    RequestParamErrorException::class,
    ServerErrorException::class,
    TimeOutException::class,
    ToManyRequestsException::class,
    UnauthorizedException::class,
    UserNotExistsException::class,
];

```

#### 协议

[](#协议)

MIT

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Total

2

Last Release

3172d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c0798008b0c1d34ca86f70ba431ea4bc8f8e3ff4827bc9a4245312c0c98565a0?d=identicon)[tyua07](/maintainers/tyua07)

---

Top Contributors

[![tyua07](https://avatars.githubusercontent.com/u/4219999?v=4)](https://github.com/tyua07 "tyua07 (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yangyifan-exception-helper/health.svg)

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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