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)22931MITPHPPHP ^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 today

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

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

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

Total

4

Last Release

1943d 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://avatars.githubusercontent.com/u/3882254?v=4)[Outshine](/maintainers/niefufeng)[@niefufeng](https://github.com/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

[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.3M45](/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.7k124](/packages/oat-sa-tao-core)

PHPackages © 2026

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