PHPackages                             csi0n/dingding-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. [HTTP &amp; Networking](/categories/http)
4. /
5. csi0n/dingding-robot

ActiveLibrary[HTTP &amp; Networking](/categories/http)

csi0n/dingding-robot
====================

dingding,robot,webhook

0.0.2(8y ago)41852PHP

Since Aug 17Pushed 8y ago2 watchersCompare

[ Source](https://github.com/csi0n/dingding-robot)[ Packagist](https://packagist.org/packages/csi0n/dingding-robot)[ RSS](/packages/csi0n-dingding-robot/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

DingDingRobot WebHook
=====================

[](#dingdingrobot-webhook)

发送消息到钉钉中

安装
--

[](#安装)

```
composer require csi0n/dingding-robot

```

使用
--

[](#使用)

### 普通

[](#普通)

```
use csi0n\DingDingRobot\Foundation\Application;

$options=[
     'webhook_token'=>'https://oapi.dingtalk.com/robot/send?spm=a219a.7629140.0.0.N7nYh8&access_token=xxxxxxxx'
];
$application=new Application($options);

//发送Text消息
$application->text
        ->content('我是测试内容')
        ->send();

//发送Link消息
$application->link
        ->title('我是一个标题')
		->text('我是内容')
		->picUrl('http://imgsrc.baidu.com/imgad/pic/item/267f9e2f07082838b5168c32b299a9014c08f1f9.jpg')
		->messageUrl('https://mp.weixin.qq.com/s?spm=a219a.7629140.0.0.uV0Ng4&__biz=MzA4NjMwMTA2Ng==&mid=2650316842&idx=1&sn=60da3ea2b29f1dcc43a7c8e4a7c97a16&scene=2&srcid=09189AnRJEdIiWVaKltFzNTw&from=timeline&isappinstalled=0&key=&ascene=2&uin=&devicetype=android-23&version=26031933&nettype=WIFI')
		->send();

//发送Markdown消息
$application->markdown
->title( '标题' )
		->text( '#### 杭州天气 @156xxxx8827\n" +
                 "> 9度，西北风1级，空气良89，相对温度73%\n\n" +
                 "> ![screenshot](http://image.jpg)\n"  +
                 "> ###### 10点20分发布 [天气](http://www.thinkpage.cn/) \n' )
		->send()

//发送ActionCard消息
$application->actioncard
		->title( '标题' )
		->text( '内容' )
		->hideAvatar( '0' )
		->btnOrientation( '0' )
		->singleTitle( '阅读全文' )
		->singleURL( 'https://www.baidu.com/' )
		->send()

//发送FeedCard消息
$application->->feedcard
        ->links( [
              			[
              				"title"      => "时代的火车向前开",
              				"messageURL" => "https://mp.weixin.qq.com/s?__biz=MzA4NjMwMTA2Ng==&mid=2650316842&idx=1&sn=60da3ea2b29f1dcc43a7c8e4a7c97a16&scene=2&srcid=09189AnRJEdIiWVaKltFzNTw&from=timeline&isappinstalled=0&key=&ascene=2&uin=&devicetype=android-23&version=26031933&nettype=WIFI",
              				"picURL"     => "https://www.dingtalk.com/"
              			],
              			[
              				"title"      => "时代的火车向前开2",
              				"messageURL" => "https://mp.weixin.qq.com/s?__biz=MzA4NjMwMTA2Ng==&mid=2650316842&idx=1&sn=60da3ea2b29f1dcc43a7c8e4a7c97a16&scene=2&srcid=09189AnRJEdIiWVaKltFzNTw&from=timeline&isappinstalled=0&key=&ascene=2&uin=&devicetype=android-23&version=26031933&nettype=WIFI",
              				"picURL"     => "https://www.dingtalk.com/"
              			]
        ] )->send()

```

### Laravel中

[](#laravel中)

在app.php providers中添加

```
csi0n\DingDingRobot\DingDingRobotServiceProvider::class,

```

在app.php alias中添加

```
'DingDingRobot'=>csi0n\DingDingRobot\Facades\DingDingRobotFacade::class

```

执行artisan 发布配置文件配置为config/dingding-robot.php

```
artisan vendor:publish --provider=csi0n\DingDingRobot\DingDingRobotServiceProvider::class

```

enjoy it :)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

Total

2

Last Release

3238d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/615df6bd544fe4a080a4bcb94bbfdc8aafc0bfea62329feba457019eff97db7a?d=identicon)[csi0n](/maintainers/csi0n)

### Embed Badge

![Health badge](/badges/csi0n-dingding-robot/health.svg)

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

###  Alternatives

[illuminate/http

The Illuminate Http package.

11937.2M6.5k](/packages/illuminate-http)[oat-sa/tao-core

TAO core extension

66140.1k108](/packages/oat-sa-tao-core)[jaxon-php/jaxon-core

Jaxon is an open source PHP library for easily creating Ajax web applications

73147.2k29](/packages/jaxon-php-jaxon-core)[eole/sandstone

Silex RestApi with Websockets.

1115.2k1](/packages/eole-sandstone)[maurobonfietti/slim4-api-skeleton

Useful skeleton for RESTful API development, using PHP and Slim 4.

1392.4k](/packages/maurobonfietti-slim4-api-skeleton)

PHPackages © 2026

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