PHPackages                             saviorlv/yii2-dingtalk-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. saviorlv/yii2-dingtalk-exception

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

saviorlv/yii2-dingtalk-exception
================================

Yii2 DingTalk exception

0.0.2(7y ago)1106MITPHPPHP &gt;=5.5.0

Since Sep 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/sunmking/yii2-dingtalk-exception)[ Packagist](https://packagist.org/packages/saviorlv/yii2-dingtalk-exception)[ Docs](https://github.com/saviorlv/yii2-dingtalk-exception)[ RSS](/packages/saviorlv-yii2-dingtalk-exception/feed)WikiDiscussions master Synced 2w ago

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

yii2-dingtalk-exception
=======================

[](#yii2-dingtalk-exception)

说明
--

[](#说明)

> yii2 日志自动发送到钉钉 实时监控服务是否运行正常

安装
--

[](#安装)

```
composer require saviorlv/yii2-dingtalk-exception
```

配置
--

[](#配置)

在使用本扩展之前，你需要去 [群机器人](https://open-doc.dingtalk.com/microapp/serverapi2/nr29om) 获取相关信息。

使用
--

[](#使用)

> 在config/main.php配置文件中定义component配置信息

```
'components' => [
    ......
    'log' => [
                'traceLevel' => YII_DEBUG ? 3 : 0,
                'targets' => [
                    [
                        'class' => 'yii\log\FileTarget',
                        'levels' => ['error', 'warning'],
                    ],
                    [
                        'class' => 'Saviorlv\Log\ExceptionTarget',
                        'levels' => ['error', 'warning'],
                        'options' => [
                            'accessToken' => 'xxxxxxxx',
                            'isAtAll' => false,
                            'atMobiles' => ['136xxxx5134']
                        ],
                    ],
                ],
            ],
    ......
]
```

参数
--

[](#参数)

`'isAtAll' => true` @所有人
`'atMobiles' => ['136xxxx5134'，'136xxxx5133']` @部分人员

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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

Every ~3 days

Total

2

Last Release

2830d ago

### Community

Maintainers

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

---

Top Contributors

[![sunmking](https://avatars.githubusercontent.com/u/33918985?v=4)](https://github.com/sunmking "sunmking (6 commits)")

---

Tags

logphpsdkexceptionyii2dingtalk

### Embed Badge

![Health badge](/badges/saviorlv-yii2-dingtalk-exception/health.svg)

```
[![Health](https://phpackages.com/badges/saviorlv-yii2-dingtalk-exception/health.svg)](https://phpackages.com/packages/saviorlv-yii2-dingtalk-exception)
```

###  Alternatives

[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14844.4k1](/packages/guanguans-laravel-exception-notify)[baibaratsky/yii2-rollbar

Rollbar for Yii2

35131.9k](/packages/baibaratsky-yii2-rollbar)[e2ex/e2ex

Converts PHP Errors to Exceptions and (optionally) logs PHP Errors, Notices and Warnings with a PSR-3 compatible logger

101.5k](/packages/e2ex-e2ex)

PHPackages © 2026

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