PHPackages                             lingan/dingtalk-notice - 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. lingan/dingtalk-notice

ActiveLibrary

lingan/dingtalk-notice
======================

一个钉钉机器人的拓展包

0.1.3(7y ago)610.9k2MITPHP

Since Dec 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/linganmin/dingtalk-notice)[ Packagist](https://packagist.org/packages/lingan/dingtalk-notice)[ RSS](/packages/lingan-dingtalk-notice/feed)WikiDiscussions master Synced 1mo ago

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

 dingtalk-notice
=================

[](#-dingtalk-notice-)

 .

Installing
----------

[](#installing)

```
composer require lingan/dingtalk-notice -vvv
```

Usage
-----

[](#usage)

### 在Laravel中使用

[](#在laravel中使用)

#### 发布配置文件

[](#发布配置文件)

```
php artisan vendor:publish
```

配置为文件

```
return [
    'robot_base_url' => env('DING_ROBOT_URL', 'https://oapi.dingtalk.com/robot/send'),
    'timeout'        => 2.0,
    'access_token'   => [
        'default' => env('DING_TOKEN', '你的钉钉群组机器人token'),// 默认
        'others'  => [ // 扩展更多token,预留
            'xxx' => env('XXX_TOKEN', '你的钉钉群组机器人token'),
        ],
    ],
];
```

#### 使用辅助函数发送

[](#使用辅助函数发送)

```
dingNotice()
->setTextMessage('这里是报错信息')
->setAtMobiles(['188xxxxxxxx'])
->send();
```

#### 使用Facade发送

[](#使用facade发送)

```
\Lingan\DingtalkNotice\Facades\DingtalkNotice::getFacadeRoot()
->useRobot()
->getInstance()
->setTextMessage('这里是报错信息')
->setAtMobiles(['188xxxxxxxx'])
->send();
```

#### 使用服务容器发送

[](#使用服务容器发送)

```
app('dingtalk-notice')
->useRobot()
->getInstance()
->setTextMessage('这里是报错信息')
->setAtMobiles(['188xxxxxxxx'])
->send();
```

### 在非Laravel项目中使用

[](#在非laravel项目中使用)

```
require_once './vendor/autoload.php';

// 配置文件
$config = [
    'robot_base_url' => 'https://oapi.dingtalk.com/robot/send',
    'timeout' => 2.0,
    'access_token' => [
        'default' => '你的钉钉群组机器人token',// 默认
    ],
];
// 实例化
$dingtalk = new \Lingan\DingtalkNotice\DingtalkNotice($config);

// 发送
$dingtalk->useRobot()
->getInstance()
->setTextMessage('这里是报错信息')
->setAtMobiles(['188xxxxxxxx'])
->send();
```

TODO
----

[](#todo)

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/linganmin/dingtalk-notice/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/linganmin/dingtalk-notice/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

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

Every ~0 days

Total

4

Last Release

2699d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0bc1003aa5c79a2ca2a03cbbf1b416c22870633c8dc4a5ba665ed2f775e16534?d=identicon)[linganmin](/maintainers/linganmin)

---

Top Contributors

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

---

Tags

dingtalkdingtalk-robotlaravel

### Embed Badge

![Health badge](/badges/lingan-dingtalk-notice/health.svg)

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

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

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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