PHPackages                             yuxiaobo/workwechat-bot-notify - 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. yuxiaobo/workwechat-bot-notify

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

yuxiaobo/workwechat-bot-notify
==============================

企业微信机器人通知sdk包，快速使用！

1.0.4(2y ago)123mitPHPPHP ^7 || ^8.0 || ^8.1 || ^8.2

Since Nov 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/edk24/workwechat-bot-notify)[ Packagist](https://packagist.org/packages/yuxiaobo/workwechat-bot-notify)[ RSS](/packages/yuxiaobo-workwechat-bot-notify/feed)WikiDiscussions main Synced 1mo ago

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

企业微信机器人通知SDK
============

[](#企业微信机器人通知sdk)

安装
--

[](#安装)

```
composer require yuxiaobo/workwechat-bot-notify
```

如何使用
----

[](#如何使用)

### 发送文本消息

[](#发送文本消息)

```
$notify = new WorkWechatBotNotify($_ENV['key']);
$notify->sendText('这是一个测试', [], ['18311548014']);
```

### 发送 Markdown 消息

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

```
$notify = new WorkWechatBotNotify($_ENV['key']);
$notify->sendMarkdown("# 这是一个`Markdown`测试\n> 111");
```

### 发送图片消息

[](#发送图片消息)

```
$notify = new WorkWechatBotNotify($_ENV['key']);

// 文件资源
$notify->sendImage(fopen(ROOT_PATH . '/tests/test.jpeg', 'r'));
// 或文件路径
// $notify->sendImage(ROOT_PATH . '/tests/test.jpeg');
```

### 发送 News 卡片

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

```
$notify = new WorkWechatBotNotify($_ENV['key']);
$notify->sendNews('中秋节礼品领取', '欢度中秋佳节', 'doc.edk24.com', 'http://res.mail.qq.com/node/ww/wwopenmng/images/independent/doc/test_pic_msg1.png');
```

### 发送文件

[](#发送文件)

```
$notify = new WorkWechatBotNotify($_ENV['key']);
$mediaId = $notify->uploadFile(fopen(ROOT_PATH . '/tests/test.jpeg', 'r'));
$notify->sendFile($mediaId);
```

其他说明
----

[](#其他说明)

### 单元测试

[](#单元测试)

复制 `.env.example` 到 `.env` 并配置 `key`

```
$ composer test
PHPUnit 9.6.13 by Sebastian Bergmann and contributors.

.....                                                               5 / 5 (100%)

Time: 00:02.138, Memory: 6.00 MB

OK (5 tests, 5 assertions)
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

5

Last Release

771d ago

PHP version history (3 changes)1.0.1PHP &gt;=7.1

1.0.2PHP ^7.4 || ^8.0 || ^8.1 || ^8.2

1.0.3PHP ^7 || ^8.0 || ^8.1 || ^8.2

### Community

Maintainers

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

---

Top Contributors

[![edk24](https://avatars.githubusercontent.com/u/32519482?v=4)](https://github.com/edk24 "edk24 (6 commits)")

---

Tags

botnotifyworkwechat

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yuxiaobo-workwechat-bot-notify/health.svg)

```
[![Health](https://phpackages.com/badges/yuxiaobo-workwechat-bot-notify/health.svg)](https://phpackages.com/packages/yuxiaobo-workwechat-bot-notify)
```

###  Alternatives

[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

682104.9k7](/packages/guanguans-notify)[crwlr/crawler

Web crawling and scraping library.

37214.8k2](/packages/crwlr-crawler)[formapro/telegram-bot

PHP Telegram Bot

2532.5k](/packages/formapro-telegram-bot)[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)
