PHPackages                             aping/laravel-ding-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. aping/laravel-ding-robot

ActiveLaravel-package

aping/laravel-ding-robot
========================

1.0.0(5y ago)24MITPHP

Since May 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/iaping/laravel-ding-robot)[ Packagist](https://packagist.org/packages/aping/laravel-ding-robot)[ RSS](/packages/aping-laravel-ding-robot/feed)WikiDiscussions master Synced 1mo ago

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

Laravel DingTalk Robot
----------------------

[](#laravel-dingtalk-robot)

Laravel DingTalk Robot SDK（Laravel钉钉机器人开发包，支持发送多个机器人）

Install
-------

[](#install)

composer

```
php composer.phar require aping/laravel-ding-robot
```

或

```
"require": {
    "aping/laravel-ding-robot": "dev-master"
}
```

Config
------

[](#config)

Laravel 5.5+:

Add Service Provider to config/app.php in providers section

```
Aping\LaravelDingRobot\RobotServiceProvider::class,
```

Add Aliase to config/app.php in aliases section

```
'Ding' => Aping\LaravelDingRobot\Facades\Ding::class,
```

Publish config

```
php artisan vendor:publish --provider="Aping\LaravelDingRobot\RobotServiceProvider"
```

Usage
-----

[](#usage)

Use facade or app('ding') :

text类型

```
$response = Ding::sendText('Hello World');
```

link类型

```
$response = Ding::sendLink('Hello', '这个即将发布的新版本，创始人xx称它为红树林。而在此之前，每当面临重大升级，产品经理们都会取一个应景的代号，这一次，为什么是红树林', 'http://www.baidu.com', 'https://img.alicdn.com/tfs/TB1NwmBEL9TBuNjy1zbXXXpepXa-2400-1218.png');
```

markdown类型

```
$response = Ding::sendMarkdown('Hello', "#### 杭州天气 \n9度，西北风1级，空气良89，相对温度73%\n> ![screenshot](https://img.alicdn.com/tfs/TB1NwmBEL9TBuNjy1zbXXXpepXa-2400-1218.png)\n> ###### 10点20分发布 [天气](https://www.dingalk.com) \n");
```

整体跳转ActionCard类型

```
$response = Ding::sendSingleActionCard('Hello', '![screenshot](@lADOpwk3K80C0M0FoA) ### 乔布斯 20 年前想打造的苹果咖啡厅 Apple Store 的设计正从原来满满的科技感走向生活化，而其生活化的走向其实可以追溯到 20 年前苹果一个建立咖啡馆的计划', '阅读全文', 'https://www.dingtalk.com/');
```

独立跳转ActionCard类型

```
$response = Ding::sendMultiActionCard('Hello', '![screenshot](@lADOpwk3K80C0M0FoA) ### 乔布斯 20 年前想打造的苹果咖啡厅 Apple Store 的设计正从原来满满的科技感走向生活化，而其生活化的走向其实可以追溯到 20 年前苹果一个建立咖啡馆的计划', [
    ['title'=>'钉钉','actionURL'=>'https://www.dingtalk.com/']
]);
```

FeedCard类型

```
$response = Ding::sendFeedCard([['title' => '钉钉', 'messageUrl' => 'https://www.dingtalk.com/', 'picUrl' => 'https://gw.alicdn.com/tfs/TB1ayl9mpYqK1RjSZLeXXbXppXa-170-62.png']]);
```

Response

```
$response->isOk();//是否成功
$response->getError();//错误信息
$response->getRaw();//响应的原始数据
```

You can send multiple robots like (可以发送多个钉钉机器人):

```
//默认
app('ding')->sendText('default robot.');
//其它或自定义
app('ding')->robot('other')->sendText('other robot.');
```

Reference
---------

[](#reference)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

2181d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f68e46dcc77d4b9ee6f93bd8c15e08a5d07a1a22c6a156c159d34a89855b88b?d=identicon)[aping](/maintainers/aping)

---

Top Contributors

[![iaping](https://avatars.githubusercontent.com/u/15192203?v=4)](https://github.com/iaping "iaping (3 commits)")

---

Tags

ding-robotdingtalkdingtalk-robotlaravel-dingdinglaravel-dingtalk

### Embed Badge

![Health badge](/badges/aping-laravel-ding-robot/health.svg)

```
[![Health](https://phpackages.com/badges/aping-laravel-ding-robot/health.svg)](https://phpackages.com/packages/aping-laravel-ding-robot)
```

PHPackages © 2026

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