PHPackages                             jourdon/ding-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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. jourdon/ding-exception

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

jourdon/ding-exception
======================

Notify Laravel exceptions via DingTalk

v1.0.1(7y ago)116MITPHPPHP ^7.1

Since Jul 30Pushed 6y ago1 watchersCompare

[ Source](https://github.com/jourdon/ding-exception)[ Packagist](https://packagist.org/packages/jourdon/ding-exception)[ RSS](/packages/jourdon-ding-exception/feed)WikiDiscussions master Synced 3d ago

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

通过钉钉推送机器人消息推送Laravel异常
======================

[](#通过钉钉推送机器人消息推送laravel异常)

[![Latest Stable Version](https://camo.githubusercontent.com/a2375cb4c281a95e288dcdf6e64296cbb9fd8859e5c86dcd6ceefe8fa38b1dee/68747470733a2f2f706f7365722e707567782e6f72672f6a6f7572646f6e2f64696e672d657863657074696f6e2f76657273696f6e)](https://github.com/jourdon/ding-exception)[![Total Downloads](https://camo.githubusercontent.com/dc945f21fbccf1e04ea923d33d4452fe11da3d35a5580082c3c4fa8156b452cf/68747470733a2f2f706f7365722e707567782e6f72672f6a6f7572646f6e2f64696e672d657863657074696f6e2f646f776e6c6f616473)](https://packagist.org/packages/jourdon/ding-exception)[![License](https://camo.githubusercontent.com/8b4a0809f40558748bd5d57b878f1ad6347ac597336aaec2aff0b06c491a59fd/68747470733a2f2f706f7365722e707567782e6f72672f6a6f7572646f6e2f64696e672d657863657074696f6e2f6c6963656e7365)](https://packagist.org/packages/jourdon/ding-exception)\##要求

- PHP版本: 7.1+
- laravel版本:5.5+

安装
--

[](#安装)

`composer require jourdon/ding-exception`

发布配置文件:
-------

[](#发布配置文件)

`php artisan vendor:publish --provider="Jourdon\DingException\DingExceptionServiceProvider"`

#### 钉钉启用开关 默认为开启

[](#钉钉启用开关-默认为开启)

```
DING_ENABLED=true

```

#### 钉钉的推送token

[](#钉钉的推送token)

(必选)发送钉钉机器人的token， 钉钉推送链接:[https://oapi.dingtalk.com/robot/send?access\_token=your-token](https://oapi.dingtalk.com/robot/send?access_token=your-token)

```
DING_TOKEN=your-token

```

#### 是否显示Trace 默认为关闭

[](#是否显示trace-默认为关闭)

```
DING_TRACE=false

```

使用方法
----

[](#使用方法)

```
use Jourdon\DingException\DingException;

class Handler extends ExceptionHandler
{
//...
    public function report(Exception $exception)
    {
        DingException::notify($exception);
        parent::report($exception);
    }
//...
}

```

示例
--

[](#示例)

[![file](https://camo.githubusercontent.com/8654c7d0b6056496c4fd4c81a4f72fa48a52eaded286ec11c95b2e4ff7a133ae/68747470733a2f2f63646e2e7068706875622e6f72672f75706c6f6164732f696d616765732f3230313830372f33302f31303531322f794f39556f54455066772e706e673f696d61676556696577322f322f772f313234302f682f30)](https://camo.githubusercontent.com/8654c7d0b6056496c4fd4c81a4f72fa48a52eaded286ec11c95b2e4ff7a133ae/68747470733a2f2f63646e2e7068706875622e6f72672f75706c6f6164732f696d616765732f3230313830372f33302f31303531322f794f39556f54455066772e706e673f696d61676556696577322f322f772f313234302f682f30)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Total

2

Last Release

2846d ago

### Community

Maintainers

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[marvinlabs/laravel-discord-logger

Logging to a discord channel in Laravel

2081.1M2](/packages/marvinlabs-laravel-discord-logger)[larabug/larabug

Laravel 6.x/7.x/8.x/9.x/10.x/11.x/12.x/13.x bug notifier

299549.3k1](/packages/larabug-larabug)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)

PHPackages © 2026

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