New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

hanson/laravel-work-exception

3,778 13

Larablocks Analysis

hanson/laravel-work-exception works with any PHP project: the latest release (1.0.0, Feb 8, 2019) doesn't depend on Laravel.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • No release in the last 12 months (last: Feb 8, 2019)
  • 0 downloads a month (needs 10,000)
  • 13 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Feb 8, 2019.
  • No releases in the last 12 months.
  • First released: Feb 8, 2019.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.

Install
composer require hanson/laravel-work-exception
Latest Version:1.0.0
License:MIT
Last Updated:Feb 9, 2019
Links: GitHub  ·  Packagist
Maintainer: hanson

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);
}

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released License
1.0.0 MIT