PHPackages                             wangchengtao/exception-notify - 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. wangchengtao/exception-notify

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

wangchengtao/exception-notify
=============================

异常监控, 支持钉钉群机器人,飞书群机器人,企业微信群机器人, 以及自定义通道

v1.0.5(4mo ago)0151MITPHPPHP &gt;=7.2

Since Dec 16Pushed 4mo agoCompare

[ Source](https://github.com/wangchengtao/message-notify)[ Packagist](https://packagist.org/packages/wangchengtao/exception-notify)[ RSS](/packages/wangchengtao-exception-notify/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (7)Used By (1)

消息通知组件
------

[](#消息通知组件)

功能
--

[](#功能)

- 支持多种通道(钉钉群机器人 飞书群机器人 企业微信群机器人)
- 支持扩展自定义通道

环境要求
----

[](#环境要求)

- php: &gt;= 7.2

安装
--

[](#安装)

```
composer require wangchengtao/message-notify
```

使用
--

[](#使用)

```
$channel = new Dingtalk([
    'access_token' => 'xxxxxxxxxxxxx',
    'auth_type' => 'sign', // 安全设置类型: keyword | sign
    'keyword' => '异常', // 当 auth_type 为 keyword 时，必填
    'secret' => 'xxxxxxxxxxxxxxxxxxxx', // 当 auth_type 为 sign 时，必填
    'at' => [], // 当 message 对象未指定@人员时，此为默认值
]);

$client = new Client($channel);

// 文本格式
$text = new DingtalkText();
$text->setTitle('测试');
$text->setContent('异常测试');
$text->setAt([
    '187*****897',
]);

$client->send($text);

// markdown 格式
$markdown = new DingtalkMarkdown();
$markdown->setTitle('Markdown消息标题');
$markdown->setContent("#### 这是Markdown消息内容 \n ![图片](https://example.com/image.png)");
$markdown->atAll();

$client->send($markdown);
```

效果图
---

[](#效果图)

[![效果图](assets/text.png)](assets/text.png)[![效果图](assets/markdown.png)](assets/markdown.png)

自定义通道
-----

[](#自定义通道)

- 所有自定义通道继承自 `AbstractChannel`
- 所有自定义消息继承自 `AbstractMessage`

```
use Summer\MessageNotify\Channel\AbstractChannel;
use Summer\MessageNotify\Message\AbstractMessage;

class CustomChannel extends AbstractChannel
{
    public function handleResponse(ResponseInterface $response): void
    {
        //
    }

    public function notify(AbstractMessage $message): ResponseInterface
    {
        //
    }
}

class CustomMessage extends AbstractMessage
{
    public function getBody() : array
    {
        //
    }
}

$message = new CustomMessage();
$message->setTitle('自定义标题');
$message->setContent('自定义消息');

$channel = new CustomChannel([
    'access_token' => 'xxxxxxxxxxxxx',
]);

$client = new Client($channel);

$client->send($text);
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance76

Regular maintenance activity

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

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

Total

6

Last Release

130d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14216412?v=4)[王成涛](/maintainers/wangchengtao)[@wangchengtao](https://github.com/wangchengtao)

---

Top Contributors

[![wangchengtao](https://avatars.githubusercontent.com/u/14216412?v=4)](https://github.com/wangchengtao "wangchengtao (25 commits)")

---

Tags

exceptionnotifydingtalkFeishu

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wangchengtao-exception-notify/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[spatie/flare-client-php

Send PHP errors to Flare

177161.5M23](/packages/spatie-flare-client-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)

PHPackages © 2026

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