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

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

mradang/laravel-dingtalk
========================

laravel-dingtalk

v4.3.0(8mo ago)11.5k—0%MITPHPCI failing

Since Sep 19Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/mradang/laravel-dingtalk)[ Packagist](https://packagist.org/packages/mradang/laravel-dingtalk)[ RSS](/packages/mradang-laravel-dingtalk/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (2)Versions (31)Used By (0)

Laravel Dingtalk
================

[](#laravel-dingtalk)

封装钉钉接口，处理钉钉事件订阅，触发事件

安装
--

[](#安装)

```
composer require mradang/laravel-dingtalk

```

配置
--

[](#配置)

1. 添加 .env 环境变量

```
DINGTALK_CORPID=dingxxxxxxx
DINGTALK_AGENTID=xxxxxxxx
DINGTALK_APPKEY=xxxxxxxx
DINGTALK_APPSECRET=xxxxxxxx
DINGTALK_CALLBACK_AES_KEY=xxxxxxxx
DINGTALK_CALLBACK_TOKEN=xxxxxxxx
DINGTALK_PROXY=http://addr:port

```

添加的路由
-----

[](#添加的路由)

- post /api/dingtalk/config
- post /api/dingtalk/callback

添加的事件
-----

[](#添加的事件)

- mradang\\LaravelDingTalk\\Events\\DepartmentCreateEvent > string $deptid
- mradang\\LaravelDingTalk\\Events\\DepartmentModifyEvent > string $deptid
- mradang\\LaravelDingTalk\\Events\\DepartmentRemoveEvent > string $deptid
- mradang\\LaravelDingTalk\\Events\\UserAddEvent > string $userid
- mradang\\LaravelDingTalk\\Events\\UserLeaveEvent > string $userid
- mradang\\LaravelDingTalk\\Events\\UserModifyEvent > string $userid

添加的命令
-----

[](#添加的命令)

1. 刷新部门和用户（触发变更事件）

```
php artisan dingtalk:RefreshDepartmentsAndUsers
```

钉钉接口调用示例
--------

[](#钉钉接口调用示例)

### 发送工作通知消息

[](#发送工作通知消息)

```
请求方式：POST（HTTPS）
请求地址：https://oapi.dingtalk.com/topapi/message/corpconversation/asyncsend_v2?access_token=ACCESS_TOKEN

```

```
$params = [
    'agent_id' => env('DINGTALK_AGENTID'),
    'userid_list' => '0841582759859766',
    'msg' => [
        'msgtype' => 'text',
        'text' => [
            'content' => '当前时间：'.date('Y-m-d H:i:s'),
        ],
    ],
];

$ret = DingTalk::post('/topapi/message/corpconversation/asyncsend_v2', $params);
```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance58

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

Established project with proven stability

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

Recently: every ~167 days

Total

30

Last Release

266d ago

Major Versions

v1.4.1 → v2.0.02020-12-25

v2.1.0 → v3.0.62022-02-26

v3.6.0 → v4.0.02023-11-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/b19d9f12d42f3aa6dec88a2d59f8d2b452ee0c4bb7504ef5e9f06938df1e9d0b?d=identicon)[mradang](/maintainers/mradang)

---

Top Contributors

[![mradang](https://avatars.githubusercontent.com/u/1206671?v=4)](https://github.com/mradang "mradang (59 commits)")

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mradang-laravel-dingtalk/health.svg)

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

###  Alternatives

[nickurt/laravel-akismet

Akismet for Laravel 11.x &amp; 12.x

98135.0k2](/packages/nickurt-laravel-akismet)[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.2k](/packages/imanghafoori-laravel-anypass)[binshops/laravel-ticket

A simple ticketing system for Laravel 5.1 – 5.8 and 6.\* - 7.\* - 8.\* - 9.\* - 10.\* -which integrates smoothly with Laravel default users and auth system

261.0k](/packages/binshops-laravel-ticket)[mozhuilungdsuo/livewire-bootstrap-modal

Dynamic Laravel Livewire 3 Bootstrap modals.

104.5k](/packages/mozhuilungdsuo-livewire-bootstrap-modal)

PHPackages © 2026

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