PHPackages                             req-tencent/weixin-pay - 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. req-tencent/weixin-pay

ActiveLibrary[Payment Processing](/categories/payments)

req-tencent/weixin-pay
======================

微信支付 APIs

0.2.1(2y ago)08PHPPHP &gt;=7.2

Since Jul 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jaifiresong/weixin-pay)[ Packagist](https://packagist.org/packages/req-tencent/weixin-pay)[ RSS](/packages/req-tencent-weixin-pay/feed)WikiDiscussions main Synced 1mo ago

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

weixin-pay
==========

[](#weixin-pay)

下载平台证书参考
========

[](#下载平台证书参考)

配置参考
====

[](#配置参考)

```
const M1 = [
    'appid' => '公众号或小程序的APPID',
    'mchid' => '商户ID',
    'v3Key' => '证书KEY',
    'sn' => '证书编号',
    'notify_url' => '支付回调通知地址',
    'private_key_path' => __DIR__ . '/证书私钥/apiclient_key.pem',
    'wechatpay_certificate_path' => __DIR__ . '/平台证书.pem',
];

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 78.6% 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 ~1 days

Total

5

Last Release

1015d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7d917428dcfcb22fa46108b4bee96b7b2e83df194a8f7370943525f6b81dc6b1?d=identicon)[jaifire](/maintainers/jaifire)

---

Top Contributors

[![jaifiresong](https://avatars.githubusercontent.com/u/33593149?v=4)](https://github.com/jaifiresong "jaifiresong (11 commits)")[![lite-view](https://avatars.githubusercontent.com/u/23491013?v=4)](https://github.com/lite-view "lite-view (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/req-tencent-weixin-pay/health.svg)

```
[![Health](https://phpackages.com/badges/req-tencent-weixin-pay/health.svg)](https://phpackages.com/packages/req-tencent-weixin-pay)
```

###  Alternatives

[chargebee/chargebee-php

ChargeBee API client implementation for PHP

768.0M9](/packages/chargebee-chargebee-php)[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42337.5k4](/packages/bitpay-sdk)[buckaroo/sdk

Buckaroo payment SDK

12189.1k9](/packages/buckaroo-sdk)[contica/facturador-electronico-cr

Un facturador de código libre para integrar facturación electrónica en Costa Rica a un proyecto PHP

2128.8k](/packages/contica-facturador-electronico-cr)[karson/mpesa-php-sdk

172.2k](/packages/karson-mpesa-php-sdk)

PHPackages © 2026

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