PHPackages                             pandaxnm/yii2-dingtalk - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. pandaxnm/yii2-dingtalk

ActiveYii2-extension[Mail &amp; Notifications](/categories/mail)

pandaxnm/yii2-dingtalk
======================

Use dingtalk robot to send message.

v1.0.0(6y ago)05MITPHP

Since Aug 14Pushed 6y ago1 watchersCompare

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

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

Yii2 dingtalk robot
===================

[](#yii2-dingtalk-robot)

Use dingtalk robot to send message.

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

[](#installation)

Either run

```
composer require pandaxnm/yii2-dingtalk

```

or add

```
"pandaxnm/yii2-dingtalk": "*"

```

to the require section of your `composer.json` file.

Settings
--------

[](#settings)

Edit `pathto/config/main.php` and add :

```
    'components' => [
        'robot' => [
            'class' => 'Pandaxnm\DingTalk\Robot',
            'accessToken' => 'YOUR_ACCESS_TOKEN',
        ],
        //other component
    ]
```

Usage
-----

[](#usage)

#### Text message

[](#text-message)

```
    //send text msg
    Yii::$app->robot->sendTextMsg("I'm a robot!")

    //send text msg and @ all
    Yii::$app->robot->sendTextMsg("I'm a robot!", '*')

    //send text msg and @ some persons
    $mobiles = ['13800138000', '13900139000']
    Yii::$app->robot->sendTextMsg("I'm a robot!", $mobiles)
```

#### Link message

[](#link-message)

```
    //send link msg
    Yii::$app->robot->sendLinkMsg('this is title','some text','http://baidu.com','http://xxx.com/1.png');
```

#### Markdown message

[](#markdown-message)

```
    //send markdown msg
    Yii::$app->robot->sendMarkdownMsg("杭州天气", "#### 杭州天气\n 9度，西北风1级，空气良89，相对温度73%");

    //send markdown mag and @ all
    Yii::$app->robot->sendMarkdownMsg("杭州天气", "#### 杭州天气\n 9度，西北风1级，空气良89，相对温度73%", '*');

    //send markdown msg and @ some persons
    $mobiles = ['13800138000'];
    Yii::$app->robot->sendMarkdownMsg("杭州天气", "#### 杭州天气 @13800138000\n 9度，西北风1级，空气良89，相对温度73%", $mobiles);
```

#### ActionCard message

[](#actioncard-message)

```
    //send actionCard msg
    Yii::$app->robot->sendActionCardMsg("今日新闻", "![screenshot](@lADOpwk3K80C0M0FoA)
     ### 乔布斯 20 年前想打造的苹果咖啡厅", 'https://dingtalk.com');

    //send single actionCard msg
    $btns = [
     [
         'title' => '同意',
         'actionUrl' => 'https://xxx.com/agree'
     ],
     [
         'title' => '拒绝',
         'actionUrl' => 'https://xxx.com/disagree'
     ],
    ];
    Yii::$app->robot->sendSingleActionCardMsg("会议邀请", "### 你有一个会议邀请\n 时间:7月10日 15:00 地点:第一会议室 主题:xxx", $btns, 1, 1);
```

#### FeedCard

[](#feedcard)

```
    $btns = [
        [
            'title' => '标题一',
            'messageUrl' => 'https://gogole.com/1',
            'picURL' => 'https://gogole.com/images/1.jpg'
        ],
        [
            'title' => '标题二',
            'messageUrl' => 'https://gogole.com/2',
            'picURL' => 'https://gogole.com/images/2.jpg'
        ],
    ];
    Yii::$app->robot->sendFeedCardMsg($btns);
```

More info, visit [Dingtalk](https://ding-doc.dingtalk.com/doc#/serverapi2/qf2nxq)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

2465d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/573f97fc90aa044e139ac1153d56d6692369433bcc1b070457a3aca088696ca3?d=identicon)[pandaxnm](/maintainers/pandaxnm)

---

Top Contributors

[![pandaxnm](https://avatars.githubusercontent.com/u/19360902?v=4)](https://github.com/pandaxnm "pandaxnm (1 commits)")

---

Tags

yii2extensiondingtalk

### Embed Badge

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

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

###  Alternatives

[nterms/yii2-mailqueue

Email queue component for yii2 that works with yii2-swiftmailer.

87129.2k2](/packages/nterms-yii2-mailqueue)[nickcv/yii2-mandrill

Mandrill Api Integration for Yii2

29554.2k2](/packages/nickcv-yii2-mandrill)[odaialali/yii2-toastr

This is the Toastr extension for Yii 2. It encapsulates Toastr plugin in terms of Yii widgets, and makes ajax notification easy to implement.

1486.3k](/packages/odaialali-yii2-toastr)

PHPackages © 2026

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