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

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

jiuxiaoer/notice
================

A message notifies the SDK

0.0.1(4y ago)36MITPHP

Since Feb 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/jiuxiaoer/notice)[ Packagist](https://packagist.org/packages/jiuxiaoer/notice)[ RSS](/packages/jiuxiaoer-notice/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (3)Versions (4)Used By (0)

---

Notice
======

[](#notice)

[![Build Status](https://github.com/jiuxiaoer/notice/actions/workflows/test.yml/badge.svg)](https://github.com/jiuxiaoer/weather/actions)[![StyleCI build status](https://camo.githubusercontent.com/bec9295c0fe33abcd0c399da992951d7ac465911383f2c9bb2e7c83c98c8d942/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3436303335333933352f736869656c64)](https://camo.githubusercontent.com/bec9295c0fe33abcd0c399da992951d7ac465911383f2c9bb2e7c83c98c8d942/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3436303335333933352f736869656c64)

消息通知集合包 钉钉 √ 微信 ....... 通知渠道 laravel 适配

安装
--

[](#安装)

```
$ composer require jiuxiaoer/notice -vvv
```

配置
--

[](#配置)

在使用本扩展之前，你需要去钉钉群创建一个自定义机器人 获取到 Webhook 和 加签值

使用
--

[](#使用)

```
use Jiuxiaoer\Notice\lib\DingMsg;

$key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx';
$sign = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx';

$dingMsg = new DingMsg($key,$sign);
```

### 发送 txt 文本消息

[](#发送-txt-文本消息)

```
$dingMsg->text('普通消息测试', ['1769xxxxxxx'])
```

### 发送 link 文本消息

[](#发送-link-文本消息)

```
$dingMsg->link('链接测试', '欢迎Ceo!', 'https://www.79xj.cn/', 'https://www.79xj.cn/usr/uploads/2021/03/44950235.jpg')
```

### 发送 markdown 文本消息

[](#发送-markdown-文本消息)

```
$dingMsg->markdown('Markdown 测试', "#### Markdown 测试", ['1769xxxxxxx'])
```

### 发送 ActionCard 卡片

[](#发送-actioncard-卡片)

```
$dingMsg->actionCard('我 20 年前想打造一间苹果咖啡厅，而它正是 Apple Store 的前身',
            "![screenshot](https://img.alicdn.com/tfs/TB1NwmBEL9TBuNjy1zbXXXpepXa-2400-1218.png) \n\n #### 乔布斯 20 年前想打造的苹果咖啡厅 \n\n Apple Store 的设计正从原来满满的科技感走向生活化，而其生活化的走向其实可以追溯到 20 年前苹果一个建立咖啡馆的计划"
            , '阅读全文', 'https://www.dingtalk.com/', '0')
```

### 发送 ActionCardAlone 卡片

[](#发送-actioncardalone-卡片)

```
$dingMsg->actionCardAlone('我 20 年前想打造一间苹果咖啡厅，而它正是 Apple Store 的前身',
            "![screenshot](https://img.alicdn.com/tfs/TB1NwmBEL9TBuNjy1zbXXXpepXa-2400-1218.png) \n\n #### 乔布斯 20 年前想打造的苹果咖啡厅 \n\n Apple Store 的设计正从原来满满的科技感走向生活化，而其生活化的走向其实可以追溯到 20 年前苹果一个建立咖啡馆的计划"
            , [['title' => '6666', 'actionURL' => 'https://www.79xj.cn'], ['title' => '6666', 'actionURL' => 'https://www.79xj.cn']])
```

### 在 Laravel 中使用

[](#在-laravel-中使用)

在 Laravel 中使用也是同样的安装方式，配置写在 `config/services.php` 中：

```
	.
	.
	.
	 'notice' => [
		'dingKey' => env('DING_KEY'),
		'dingSign' => env('DING_SIGON'),
    ],
```

然后在 `.env` 中配置 `dingKey dingSign` ：

```
DING_KEY=xxxxxxxxxxxxxxxxxxxxx

DING_SIGON=xxxxxxxxxxxxxxxxxxxxx
```

可以用两种方式来获取 `Jiuxiaoer\Notice\lib\DingMsg` 实例：

#### 方法参数注入

[](#方法参数注入)

```
	.
	.
	.
	public function edit(DingMsg $weather)
	{
		$response = $dingMsg->txt('测试');
	}
	.
	.
	.
```

#### 服务名访问

[](#服务名访问)

```
	.
	.
	.
	public function edit()
	{
		$response = app('dingMsg')->txt('测试');
	}
	.
	.
	.
```

参考
--

[](#参考)

License
-------

[](#license)

MIT

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

1538d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43ecdbf2b28e1e42f0119dc2e666fb3803bde12239d042138976ca330b2ecbde?d=identicon)[jiuxiaoer](/maintainers/jiuxiaoer)

---

Top Contributors

[![jiuxiaoer](https://avatars.githubusercontent.com/u/77799665?v=4)](https://github.com/jiuxiaoer "jiuxiaoer (2 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[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)
