PHPackages                             nsp-team/qywx-tool - 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. nsp-team/qywx-tool

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

nsp-team/qywx-tool
==================

企业微信工具包

v1.0.4(4y ago)112Apache-2.0PHPPHP &gt;=7.3.0

Since Nov 23Pushed 4y agoCompare

[ Source](https://github.com/nsp-team/qywx-tool)[ Packagist](https://packagist.org/packages/nsp-team/qywx-tool)[ RSS](/packages/nsp-team-qywx-tool/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)DependenciesVersions (6)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/ebcaa061cbd59332269b0189f880bd18b535c111b54ebd83926d25b137626248/687474703a2f2f706f7365722e707567782e6f72672f6e73702d7465616d2f717977782d746f6f6c2f76)](https://packagist.org/packages/nsp-team/qywx-tool)[![Total Downloads](https://camo.githubusercontent.com/242cb8ce223cc486de762a9b00f0d3211ac8f67e711920547c2676db296ff0d7/687474703a2f2f706f7365722e707567782e6f72672f6e73702d7465616d2f717977782d746f6f6c2f646f776e6c6f616473)](https://packagist.org/packages/nsp-team/qywx-tool)[![Latest Unstable Version](https://camo.githubusercontent.com/5c4e94d0fc75f8e303c449fa362942eb11348092c17691f9656bb8d644f81dd9/687474703a2f2f706f7365722e707567782e6f72672f6e73702d7465616d2f717977782d746f6f6c2f762f756e737461626c65)](https://packagist.org/packages/nsp-team/qywx-tool)[![License](https://camo.githubusercontent.com/320d08b74d7a78c3be700cd18d5c76133896d867ce14a92aa51fbe201ef729d8/687474703a2f2f706f7365722e707567782e6f72672f6e73702d7465616d2f717977782d746f6f6c2f6c6963656e7365)](https://packagist.org/packages/nsp-team/qywx-tool)[![PHP Version Require](https://camo.githubusercontent.com/e72782202d710a10f98032ee1edea38364a1203d2d61bcac99c600797fe8de61/687474703a2f2f706f7365722e707567782e6f72672f6e73702d7465616d2f717977782d746f6f6c2f726571756972652f706870)](https://packagist.org/packages/nsp-team/qywx-tool)

qywx-tool
=========

[](#qywx-tool)

企业微信工具库, 方便日常开发使用的企业微信服务api封装库

这个库需要PHP7.3以上版本

Install
-------

[](#install)

> composer require nsp-team/qywx-tool

Sample Usage
------------

[](#sample-usage)

```
use NspTeam\WeiWork\CorpAPI;

require_once "../vendor/autoload.php";

$template_id = '1970325xzcxzczxc16_1761336249_1496795097';
$corpAPI = new CorpAPI('wxxzcxzcxzc12c', 'NzxczxP49PABzxcxzcxzcxzcM', '301000222');

```

### 获取access-token

[](#获取access-token)

```
$accessToken = $corpAPI->getAccessToken();
var_dump($accessToken);

```

### 获取审批模板详情

[](#获取审批模板详情)

```
$templateData = $corpAPI->getApprovalTemplateData($template_id);
var_dump($templateData);

```

### 提交审批申请

[](#提交审批申请)

```

$creator_userid= 'MaoXingPei';
$apply_data= [
    array(
        'control_type' => 'Textarea',
        'control_id' => 'Textarea-1637636930315',
        'control_value' => [
            'text' => '江苏科技有限公司'
        ],
    ),
    array(
        'control_type' => 'Table',
        'control_id' => 'Table-1637635645139',
        'control_value' => [
            'children' => array(
                [
                    'list' => array(
                        [
                            'control' => 'Text',
                            'id' => 'Text-1637635646995',
                            'value' => array(
                                'text' => '香樟'
                            ),
                        ],
                        [
                            'control' => 'Text',
                            'id' => 'Text-1637635655151',
                            'value' => array(
                                'text' => '胸径10cm'
                            ),
                        ],
                        [
                            'control' => 'Textarea',
                            'id' => 'Textarea-1637635660866',
                            'value' => array(
                                'text' => "苗圃：贵州苗圃\n造型分类：园林\n 操作者：王显示\n 最低折扣：0.96"
                            ),
                        ],
                        [
                            'control' => 'Money',
                            'id' => 'Money-1637635672768',
                            'value' => array(
                                'new_money' => "65000.42"
                            ),
                        ],
                        [
                            'control' => 'Text',
                            'id' => 'Text-1637635684681',
                            'value' => array(
                                'text' => "0.96"
                            ),
                        ],
                        [
                            'control' => 'Text',
                            'id' => 'Text-1637635692702',
                            'value' => array(
                                'text' => "0.50"
                            ),
                        ],
                    )
                ],
                [
                    'list' => array(
                    )
                ],
            )
        ],
    ),
];
$approval_user= ['MaoPei', 'WangLiang'];
$notify= [];
$summary_text= ['采购明细单申请微调折扣比例'];
$approval = $corpAPI->submitApplicationForApproval($creator_userid, $template_id, $apply_data, $approval_user, $summary_text, $notify);
var_dump($approval);

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

Total

5

Last Release

1622d ago

PHP version history (2 changes)V1.0.0PHP &gt;=7.3

v1.0.2PHP &gt;=7.3.0

### Community

Maintainers

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

---

Top Contributors

[![Maoxp](https://avatars.githubusercontent.com/u/37761489?v=4)](https://github.com/Maoxp "Maoxp (19 commits)")

---

Tags

sdkweixinwebmanqiyeweixin

### Embed Badge

![Health badge](/badges/nsp-team-qywx-tool/health.svg)

```
[![Health](https://phpackages.com/badges/nsp-team-qywx-tool/health.svg)](https://phpackages.com/packages/nsp-team-qywx-tool)
```

###  Alternatives

[w7corp/easywechat

微信SDK

10.4k761.6k60](/packages/w7corp-easywechat)

PHPackages © 2026

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