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

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

cblink/laravel-work-exception
=============================

v1.0.1(4y ago)066MITPHP

Since Feb 8Pushed 4y agoCompare

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

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

laravel-work-exception
======================

[](#laravel-work-exception)

使用企业微信通知你的系统异常

特色
--

[](#特色)

- 支持多个项目不一样的通知群，使你的bug通知更加精准到位
- 自带创建群聊命令，创建好你只负责把相关负责人拉到群里即可
- 一段时间内多个一样bug的触发不会通知多次

安装
--

[](#安装)

```
composer install hanson/wechat-work-exception:dev-master -vvv

```

配置
--

[](#配置)

生成 `wor_exception.php` 配置

```
php artisan vendor:publish --tag=work-exception

```

修改 `work` 底下的配置 （需要在企业微信后台创建“自建应用”）

执行

```
php artisan work:chat

```

根据提示一步一步去创建群聊，并且复制创建成功后的 chat id，黏贴到 `work.chatid` 的配置

使用
--

[](#使用)

在 laravel 的 Handler 类下

```
use Hanson\WorkException\WorkExceptionHelper;

// ...

public function report(Exception $exception)
{
   // 不输出 trace 信息
   (new WorkExceptionHelper())->handle($exception);

   // 输出 trace 信息
   (new WorkExceptionHelper())->withTrace()->handle($exception);

   parent::report($exception);
}

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~835 days

Total

2

Last Release

1815d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a33f3d22f7c5ba81df984215eda327fe21f224f59a8a8cb404138042ec9f788?d=identicon)[overnic](/maintainers/overnic)

---

Top Contributors

[![Hanson](https://avatars.githubusercontent.com/u/10583423?v=4)](https://github.com/Hanson "Hanson (8 commits)")[![0daynick](https://avatars.githubusercontent.com/u/17755109?v=4)](https://github.com/0daynick "0daynick (2 commits)")

### Embed Badge

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

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

###  Alternatives

[hanson/laravel-work-exception

133.8k](/packages/hanson-laravel-work-exception)

PHPackages © 2026

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