PHPackages                             oywenjiao/wxtool - 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. oywenjiao/wxtool

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

oywenjiao/wxtool
================

a simple wx handle

2.2(6y ago)020MITPHPPHP &gt;=5.6CI failing

Since Nov 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/oywenjiao/wxtool)[ Packagist](https://packagist.org/packages/oywenjiao/wxtool)[ Docs](https://github.com/oywenjiao/wxtool.git)[ RSS](/packages/oywenjiao-wxtool/feed)WikiDiscussions master Synced 1mo ago

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

wxtool
======

[](#wxtool)

微信生态圈类库

安装
--

[](#安装)

> composer require oywenjiao/wxtool

文件说明
----

[](#文件说明)

- WxBase 微信基础操作
- Core
    - Order 订单相关操作。(包含有原生支付（扫码支付）/ 公众号支付 / H5支付 / 现金红包 / 企业付款到零钱 等功能)
    - TemplateMessage 微信模板消息发送
- Qrcode
    - QRcode 生成二维码

使用
--

[](#使用)

```
// 实例化公共类
$base = new WxBase($appId, $appSecret);

// 调用统一下单接口
$wx_order = new Order($base);
$wx_order->setMchID($mchId)->setKey($key);
$res = $wx_order->unifiedOrder($openid, $trade_sn, $price, $notify, $body);

// 调用企业付款
$wx_order = new Order($base);
$wx_order->setMchID($obj->mchId)->setKey($obj->key)->setCert($cert)->setSslKey($key);
$res = $wx_order->payToUser($openid, $trade_sn, $price, $desc);
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

5

Last Release

2322d ago

Major Versions

1.1 → 2.02019-12-11

### Community

Maintainers

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

---

Top Contributors

[![oywenjiao](https://avatars.githubusercontent.com/u/13310863?v=4)](https://github.com/oywenjiao "oywenjiao (17 commits)")

---

Tags

toolWXoywenjiao

### Embed Badge

![Health badge](/badges/oywenjiao-wxtool/health.svg)

```
[![Health](https://phpackages.com/badges/oywenjiao-wxtool/health.svg)](https://phpackages.com/packages/oywenjiao-wxtool)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[phing/phing

PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.

1.2k21.7M869](/packages/phing-phing)[bamarni/composer-bin-plugin

No conflicts for your bin dependencies

52722.0M855](/packages/bamarni-composer-bin-plugin)[firefly-iii/data-importer

Firefly III Data Import Tool.

7545.8k](/packages/firefly-iii-data-importer)[clagiordano/weblibs-configmanager

weblibs-configmanager is a tool library for easily read and access to php config array file and direct read/write configuration file / object

163.5M9](/packages/clagiordano-weblibs-configmanager)

PHPackages © 2026

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