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 yesterday

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 41% 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

825d 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://avatars.githubusercontent.com/u/32519482?v=4)[余晓波](/maintainers/edk24)[@edk24](https://github.com/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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[oat-sa/tao-core

TAO core extension

66143.7k122](/packages/oat-sa-tao-core)

PHPackages © 2026

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