PHPackages                             srako/webman-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. srako/webman-dingtalk

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

srako/webman-dingtalk
=====================

webman-dingtalk

v2.0.0(1y ago)2619↓50%MITPHPPHP ^8.1

Since Apr 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/srako/webman-dingtalk)[ Packagist](https://packagist.org/packages/srako/webman-dingtalk)[ RSS](/packages/srako-webman-dingtalk/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (5)Versions (14)Used By (0)

Webman Dingtalk
===============

[](#webman-dingtalk)

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

安装
--

[](#安装)

```
composer require srako/wenman-dingtalk

```

配置
--

[](#配置)

1. 添加 .env 环境变量

```
DING_CORP_ID=dingxxxxxxx
DING_AGENT_ID=xxxxxxxx
DING_CLIENT_ID=xxxxxxxx
DING_CLIENT_SECRET=xxxxxxxx
DING_AES_KEY=xxxxxxxx
DING_TOKEN=xxxxxxxx

```

添加的命令
-----

[](#添加的命令)

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

```
php webman 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

36

—

LowBetter than 79% of packages

Maintenance46

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

Recently: every ~44 days

Total

13

Last Release

410d ago

Major Versions

v0.2 → v1.02024-09-12

v1.1.3 → v2.0.02025-05-20

PHP version history (2 changes)v0.1PHP ^8.0

v2.0.0PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18043224?v=4)[srako](/maintainers/srako)[@srako](https://github.com/srako)

---

Top Contributors

[![srako](https://avatars.githubusercontent.com/u/18043224?v=4)](https://github.com/srako "srako (13 commits)")

### Embed Badge

![Health badge](/badges/srako-webman-dingtalk/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[nativephp/mobile

NativePHP for Mobile

1.1k75.1k91](/packages/nativephp-mobile)[venturedrake/laravel-crm

A free open source CRM built as a package for laravel projects

43311.2k](/packages/venturedrake-laravel-crm)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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