PHPackages                             niefufeng/wework-webhook - 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. niefufeng/wework-webhook

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

niefufeng/wework-webhook
========================

企业微信webhook的php sdk

1.0.4(5y ago)22391MITPHPPHP ^5.5 | ^7 | ^8

Since Jul 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/niefufeng/wework-webhook-php-sdk)[ Packagist](https://packagist.org/packages/niefufeng/wework-webhook)[ RSS](/packages/niefufeng-wework-webhook/feed)WikiDiscussions master Synced 1mo ago

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

企业微信web hook sdk
================

[](#企业微信web-hook-sdk)

食用方式
----

[](#食用方式)

### 安装

[](#安装)

```
composer require niefufeng/wework-webhook --prefer-dist -o
```

### 使用

[](#使用)

```
$config = [
    'key' => '你的微信机器人的key'
];

$client = new \NieFufeng\WeWorkWebHook\Client($config);

# 发送纯文本消息（at手机号时不需要加at符）
$client->sendText('hello world!', ['@all', '10086']);

# 发送 markdown 消息
$client->sendMarkdown("# hello\n> world!");

# 发送图片消息（图片不得超过2M）
$client->sendImage('/path/image.jpg');

# 发送图片内容
$client->sendImageFromContent(
    file_get_contents('/path/image.jpg')
);

# 发送图文消息
$client->sendNews([
    [
        'title' => 'Hello world',
        'description' => '该消息发送自企业微信webhook sdk',
        'url' => 'https://www.p***hub.com',
        'picurl' => 'https://image.p***hub.com/cover.jpg'
    ]
]);

# 上传文件（会返回media_id，可用于发送文件消息）
$mediaID = $client->uploadFile('图片.jpg', '/path/image.jpg');

# 发送文件消息
$client->sendFile($mediaID);
```

Licence
-------

[](#licence)

自豪的采用 [MIT](http://opensource.org/licenses/MIT)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

Total

4

Last Release

1896d ago

PHP version history (3 changes)1.0.0PHP ^7.2.5

1.0.2PHP ^5.5

1.0.3PHP ^5.5 | ^7 | ^8

### Community

Maintainers

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

---

Top Contributors

[![niefufeng](https://avatars.githubusercontent.com/u/3882254?v=4)](https://github.com/niefufeng "niefufeng (7 commits)")

### Embed Badge

![Health badge](/badges/niefufeng-wework-webhook/health.svg)

```
[![Health](https://phpackages.com/badges/niefufeng-wework-webhook/health.svg)](https://phpackages.com/packages/niefufeng-wework-webhook)
```

###  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

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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