PHPackages                             vitepay/wechat - 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. vitepay/wechat

ActiveLibrary[Payment Processing](/categories/payments)

vitepay/wechat
==============

vitepay的wechat支付网关。

1.0.1(5y ago)012MITPHPPHP &gt;=7.1.0

Since Aug 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/liuwave/vitepay-wechat)[ Packagist](https://packagist.org/packages/vitepay/wechat)[ RSS](/packages/vitepay-wechat/feed)WikiDiscussions master Synced 1w ago

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

vitepay-wechat
==============

[](#vitepay-wechat)

vitepay的微信支付网关。

安装
--

[](#安装)

```
composer require vitepay/wechat

```

配置
--

[](#配置)

修改配置`config/vitepay_wechat.php`

```
return [
  'sandbox'     => true,//沙箱模式
  'type'        => '',
  'credentials' => [
	'key'     => '',
	'app_id'  => '',
	'mch_id'  => '',
	'cert'    => '',//证书
	'ssl_key' => '',//证书秘钥
  ],
  "gateways"    => [
	"js"   => [
	  'type' => 'js',
	],
	"app"  => [
	  'type'    => 'app',
	  'sandbox' => true,
	  'credentials' => [
		'app_id' => '',//需要填入APP的app_id
	  ],
	],
	"wap"  => [
	  'type'    => 'wap',
	  'sandbox' => true,
	],
	"scan" => [
	  'sandbox' => true,
	  'type'    => 'scan',
	],
	"mp"   => [
	  'type'        => 'js',
	  'sandbox'     => true,
	  'credentials' => [
		'app_id' => '',//需要填入小程序的app_id
	  ],
	],
  ],
];

```

使用
--

[](#使用)

参见 [liuwave/vitepay](https://github.com/liuwave/vitepay)

相关支付
----

[](#相关支付)

- [liuwave/vitepay-alipay](https://github.com/liuwave/vitepay-alipay)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://choosealicense.com/licenses/mit) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

2

Last Release

2025d ago

### Community

Maintainers

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

---

Top Contributors

[![liuwave](https://avatars.githubusercontent.com/u/6533126?v=4)](https://github.com/liuwave "liuwave (7 commits)")

---

Tags

paymerchantwechat-paythinkphp 6vitepay

### Embed Badge

![Health badge](/badges/vitepay-wechat/health.svg)

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

###  Alternatives

[omnipay/common

Common components for Omnipay payment processing library

35119.0M1.0k](/packages/omnipay-common)[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

587421.0k11](/packages/lokielse-omnipay-alipay)[lokielse/omnipay-unionpay

UnionPay gateway for Omnipay payment processing library

11358.1k2](/packages/lokielse-omnipay-unionpay)

PHPackages © 2026

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