PHPackages                             jetblink/dingtalk-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. [Queues &amp; Workers](/categories/queues)
4. /
5. jetblink/dingtalk-notify

ActiveLibrary[Queues &amp; Workers](/categories/queues)

jetblink/dingtalk-notify
========================

简单易用的钉钉机器人通知(支持加签). Easy dingtalk robot notification sdk.

1.0.2(6y ago)933[1 issues](https://github.com/JetBlink/dingtalk-notify/issues)MITPHPPHP &gt;=7.1.3CI failing

Since Mar 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/JetBlink/dingtalk-notify)[ Packagist](https://packagist.org/packages/jetblink/dingtalk-notify)[ RSS](/packages/jetblink-dingtalk-notify/feed)WikiDiscussions master Synced 2d ago

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

DingTalk Notify
===============

[](#dingtalk-notify)

钉钉机器人通知(支持加签）。dingtalk robot notification sdk.

Overview
--------

[](#overview)

- [Installation](#Installation)
- [Usage](#Usage)
    - [获取实例](#%E8%8E%B7%E5%8F%96%E5%AE%9E%E4%BE%8B)
    - [发送消息](#%E5%8F%91%E9%80%81%E6%B6%88%E6%81%AF)
        - [发送原始消息](#%E5%8F%91%E9%80%81%E5%8E%9F%E5%A7%8B%E6%B6%88%E6%81%AF)
        - [发送文本消息](#%E5%8F%91%E9%80%81%E6%96%87%E6%9C%AC%E6%B6%88%E6%81%AF)
        - [发送Markdown消息](#%E5%8F%91%E9%80%81markdown%E6%B6%88%E6%81%AF)
        - [发送链接消息](#%E5%8F%91%E9%80%81%E9%93%BE%E6%8E%A5%E6%B6%88%E6%81%AF)
    - [Tips](#Tips)
- [官方文档](#%E5%AE%98%E6%96%B9%E6%96%87%E6%A1%A3)
- [License](#license)

Installation
------------

[](#installation)

```
composer require jetblink/dingtalk-notify -vvv

```

Usage
-----

[](#usage)

### 获取实例

[](#获取实例)

```
$dingTalk = new \JetBlink\DingtalkNotify\DingtalkNotify('your_dingtalk_robot_token');

```

### 发送消息

[](#发送消息)

#### 发送原始消息

[](#发送原始消息)

```
$dingTalk->sendMessage([
    'msgtype' => 'text',
    'text'    => [
        'content' => '这是一条测试消息。',
    ],
    'at'      => [
        'atMobiles' => [],
        'isAtAll'   => false,
    ]
]);

```

#### 发送文本消息

[](#发送文本消息)

```
$dingTalk->sendTextMessage('这是一条文本测试消息。');

```

#### 发送Markdown消息

[](#发送markdown消息)

```
$dingTalk->sendMarkdownMessage(
    'Markdown Test Title',
    "### Markdown  测试消息"
);

```

#### 发送链接消息

[](#发送链接消息)

```
$dingTalk->sendLinkMessage(
    'Link Test Title',
    "这是一条链接测试消息",
    'https://github.com/JetBlink',
    'https://avatars0.githubusercontent.com/u/40748346'
);

```

### Tips

[](#tips)

文本消息和Markdown消息都支持\*\*@指定手机号**和**@所有人\*\*，参数位置见具体方法

官方文档
----

[](#官方文档)

- [自定义机器人](https://ding-doc.dingtalk.com/doc#/serverapi2/qf2nxq)

> 每个机器人每分钟最多发送**20条**。

License
-------

[](#license)

[MIT](https://opensource.org/licenses/MIT)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Total

3

Last Release

2389d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c0f113b8e3c23614f2ea5d0feb305fc8ac7db12844630d88125958ea43e757b?d=identicon)[sh7ning](/maintainers/sh7ning)

---

Top Contributors

[![sh7ning](https://avatars.githubusercontent.com/u/4698385?v=4)](https://github.com/sh7ning "sh7ning (15 commits)")

---

Tags

composerdingtalkdingtalk-robotphpmessageapisdknotifydingtalkrobot

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jetblink-dingtalk-notify/health.svg)

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

###  Alternatives

[aws/aws-php-sns-message-validator

Amazon SNS message validation for PHP

21421.5M91](/packages/aws-aws-php-sns-message-validator)[guanguans/notify

Push notification SDK(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).

682104.9k7](/packages/guanguans-notify)[ufo-tech/json-rpc-client-sdk

Simple clientSDK builder for any json-RPC servers

182.7k1](/packages/ufo-tech-json-rpc-client-sdk)

PHPackages © 2026

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