PHPackages                             vary-exception/vary-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vary-exception/vary-exception

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vary-exception/vary-exception
=============================

all kinds of exceptions and exceptions dealer

v1.0.0(6y ago)04MITPHP

Since Jul 19Pushed 6y agoCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

### 对常用错误日志进行处理

[](#对常用错误日志进行处理)

所有的错误日志都要记录到公共的地方(目前为表)

对一些异常有单独处理

这里的异常并不包罗万象 只是个人认为的一些通用异常

一些特定逻辑的异常无需写入到这里 (比如加密失败)

这会引起一个问题 有些时候无法 确定 一个异常类 应该存在于 某个特定功能当中

亦或者是存在与这个包当中(持续探索中)

思考 如果都是 InvalidArgument 在不同的业务场景中

比如redis 中 参数不合法 和 发请求的时候参数不合法 是否应该是两个 InvalidArgument

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Unknown

Total

1

Last Release

2482d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0fb66c16f123d51ad5ead7593a7052bec5abc7be6db4abb6d84a465866097c52?d=identicon)[FlyInTheSea](/maintainers/FlyInTheSea)

---

Top Contributors

[![missing-u](https://avatars.githubusercontent.com/u/8327028?v=4)](https://github.com/missing-u "missing-u (16 commits)")

### Embed Badge

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

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

###  Alternatives

[kkszymanowski/traitor

Add a trait use statement to existing PHP class

1305.2M16](/packages/kkszymanowski-traitor)

PHPackages © 2026

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