PHPackages                             gover/tp5-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. gover/tp5-ding-exception

ActiveLibrary

gover/tp5-ding-exception
========================

dingding exception

v3.0.0(7y ago)011Smarty

Since Mar 29Pushed 7y ago1 watchersCompare

[ Source](https://github.com/qq389638896/tp5-ding-exception)[ Packagist](https://packagist.org/packages/gover/tp5-ding-exception)[ RSS](/packages/gover-tp5-ding-exception/feed)WikiDiscussions master Synced 1mo ago

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

tp5-ding-exception
==================

[](#tp5-ding-exception)

composer 安装命令
-------------

[](#composer-安装命令)

composer require gover/tp5-ding-exception

部署流程
----

[](#部署流程)

#### 第一步：引入DingTalk.php和ExceptionFormat.php两个文件

[](#第一步引入dingtalkphp和exceptionformatphp两个文件)

#### 第二步：放置好think\_exception.tpl

[](#第二步放置好think_exceptiontpl)

#### 第三步：参考demo代码，发送钉钉异常警报（tpl路径可以在ExceptionFormat里showTpl方法中修改）

[](#第三步参考demo代码发送钉钉异常警报tpl路径可以在exceptionformat里showtpl方法中修改)

配置 .env
-------

[](#配置-env)

\[dingtalk\] access\_token = xxxxxxx

demo代码
------

[](#demo代码)

```
      //发送钉钉报警,$e是Exception异常对象
      $e_info = ExceptionFormat::getDingActionCard($e);
      $btn = [['title' => '详情', 'actionURL' => $e_info['url']],];
      DingTalk::getInstance()->sendActionCard('异常消息' . date('H:i:s'), $e_info['text'], $btn, 1, 1);

```

备注： [钉钉token获取链接](https://open-doc.dingtalk.com/docs/doc.htm?spm=a219a.7629140.0.0.karFPe&treeId=257&articleId=105735&docType=1)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

2598d ago

Major Versions

v1.0.0 → v3.0.02019-03-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/1cbdfc3d4c6312dbeaeb07ec994b7d254b8e94431767466c8371c7a48615c78f?d=identicon)[qq389638896](/maintainers/qq389638896)

### Embed Badge

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

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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