PHPackages                             fifths/php-wxpay - 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. [Payment Processing](/categories/payments)
4. /
5. fifths/php-wxpay

ActiveLibrary[Payment Processing](/categories/payments)

fifths/php-wxpay
================

php wxpay class

144PHP

Since May 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/fifths/php-wxpay)[ Packagist](https://packagist.org/packages/fifths/php-wxpay)[ RSS](/packages/fifths-php-wxpay/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

INSTALL
-------

[](#install)

```
composer require fifths/php-wxpay

```

```
$config = array(
    'appid' => '', // 公众账号ID
    'mch_id' => '', // 商户号
    'key' => '', // key设置路径：微信商户平台(pay.weixin.qq.com)-->账户设置-->API安全-->密钥设置
    'app_secret' => '',// 公众帐号secert（仅JSAPI支付的时候需要配置， 登录公众平台，进入开发者中心可设置），
    //=======【证书路径设置】=====================================
    /**
    * TODO：设置商户证书路径
    * 证书路径,注意应该填写绝对路径（仅退款、撤销订单时需要，可登录商户平台下载，
    * API证书下载地址：https://pay.weixin.qq.com/index.php/account/api_cert，下载之前需要安装商户操作证书）
    * @var path
    */
    'sslcer_path' => '',
    'sslkey_path' => '',
    'notify_url' => '', //异步通知url
);

$app = \Wechat\Factory::WxPay($config);
$data['transaction_id'] = 'xxxxxxxxxxxxx';
$result=$app->orderQuery($data);
echo json_encode($result);
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/49f757c592dc7b6d8f02c741712d1a08d01875e4ada853bbec66012398e171e3?d=identicon)[fifths](/maintainers/fifths)

---

Top Contributors

[![maxlee123456](https://avatars.githubusercontent.com/u/63325897?v=4)](https://github.com/maxlee123456 "maxlee123456 (12 commits)")

### Embed Badge

![Health badge](/badges/fifths-php-wxpay/health.svg)

```
[![Health](https://phpackages.com/badges/fifths-php-wxpay/health.svg)](https://phpackages.com/packages/fifths-php-wxpay)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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