PHPackages                             vitepay/core - 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/core

ActiveLibrary[Payment Processing](/categories/payments)

vitepay/core
============

一个thinkphp 6 的多网关支付框架。

1.0.0(5y ago)1222MITPHPPHP &gt;=7.1.0

Since Aug 27Pushed 5y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (6)Versions (2)Used By (2)

vitepay
=======

[](#vitepay)

一个thinkphp6的多网关支付框架。

安装
--

[](#安装)

```
composer require vitepay/core vitepay/wechat

```

使用
--

[](#使用)

修改 `config/vitepay.php`

```
return [
	'sandbox'    => true,//沙箱模式
	'charge'     => 'app\\model\\Charge',
	'notify_url' => '',//留空则设为PAY_NOTIFY对应的路由
	'route'      => true,//是否注册路由
];

```

需要指定 `charge`模型，并实现[Payable](https://github.com/liuwave/vitepay/blob/master/src/core/interfaces/Payable.php)

```
/**@var \vitepay\core\traits\PayableModel $charge */
$charge=\app\model\Charge::find()

//起调支付
$charge->pay('wechat_js');

//查询结果

$charge->query();

//判断结果

$charge->isComplete();

```

支持的支付网关
-------

[](#支持的支付网关)

所有的支付网关需要实现[Gateway](https://github.com/liuwave/vitepay/blob/master/src/core/Gateway.php).

当前可用支付网关如下：

网关Composer包简介作者[wechat](https://github.com/liuwave/vitepay-wechat)vitepay/wechat微信支付liuwave[alipay](https://github.com/liuwave/vitepay-alipay)vitepay/alipay支付宝支付liuwave感谢
--

[](#感谢)

- [thephpleague/omnipay](https://github.com/thephpleague/omnipay)
- [think-pay](https://github.com/yunwuxin/think-pay)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

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

Unknown

Total

1

Last Release

2090d 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 (5 commits)")

---

Tags

paymerchantthinkphp 6vitepay

### Embed Badge

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

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

###  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)[academe/omnipay-payone

PAYONE gateway driver for the Omnipay PHP payment processing library

15171.7k](/packages/academe-omnipay-payone)

PHPackages © 2026

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