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

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

hanson/laravel-work-exception
=============================

1.0.0(7y ago)133.8k3MITPHP

Since Feb 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Hanson/laravel-work-exception)[ Packagist](https://packagist.org/packages/hanson/laravel-work-exception)[ RSS](/packages/hanson-laravel-work-exception/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (2)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

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

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

2650d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[humanmade/related-posts

Extensible related posts wrapper with support for manual overrides.

124.2k](/packages/humanmade-related-posts)

PHPackages © 2026

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