PHPackages                             atishoo/dingtalk\_robot - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. atishoo/dingtalk\_robot

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

atishoo/dingtalk\_robot
=======================

钉钉机器人php库

1.1(5y ago)127044MITPHPPHP &gt;=5.5

Since Jun 12Pushed 3y ago2 watchersCompare

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

READMEChangelog (1)DependenciesVersions (3)Used By (0)

dingtalk\_robot
===============

[](#dingtalk_robot)

##### 钉钉机器人php库

[](#钉钉机器人php库)

#### 环境要求

[](#环境要求)

- PHP 5.5+
- Composer

#### 安装

[](#安装)

`composer require atishoo/dingtalk_robot`

#### 如何使用

[](#如何使用)

###### 1.引入命名空间

[](#1引入命名空间)

`use Atishoo\DingtalkRobot;`

###### 2.实例化类

[](#2实例化类)

`$dingtalk = new DingtalkRobot($webhook);`

> 如安全验证为加签方式，可再次设置密钥 如安全验证为加签方式，可再次设置密钥 `$dingtalk->setSecret(text);`此方法同样支持链式调用，只需要在send()前设置即可。

###### 3.调用方法进行发送机器人消息

[](#3调用方法进行发送机器人消息)

`$dingtalk->setText(text)->send();`

同理还支持其他格式的消息类型，使用方法类似，如下：

- $dingtalk-&gt;setText(text,\[$atMobiles,$isAtAll\])-&gt;send();
- $dingtalk-&gt;setLink(text,$title,$messageUrl,$picUrl)-&gt;send();
- $dingtalk-&gt;setMarkdown(text,$title)-&gt;send();
- $dingtalk-&gt;setActionCard(text,$title,$btns,$btnOrientation,$hideAvatar)-&gt;send();
- $dingtalk-&gt;setFeedcard($data)-&gt;send(); **必须包含title，messageURL，picURL的数组**

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

2096d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/862ff34f9440214b00086e70c82721c305a52220950ca4e854083cd8ddb3290a?d=identicon)[atishoo](/maintainers/atishoo)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/atishoo-dingtalk-robot/health.svg)

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

###  Alternatives

[rezozero/social-links

Provide social network url for sharing.

155.7k1](/packages/rezozero-social-links)

PHPackages © 2026

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