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

ActiveLibrary[Payment Processing](/categories/payments)

vitepay/alipay
==============

vitepay的alipay支付网关。

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

Since Aug 27Pushed 5y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

vitepay-alipay
==============

[](#vitepay-alipay)

vitepay的支付宝支付网关。

安装
--

[](#安装)

```
composer require vitepay/alipay

```

配置
--

[](#配置)

修改配置`config/vitepay_alipay.php`

```
return [
  'sandbox'     => true,//沙箱模式
  'type'        => '',//默认为 \vitepay\alipay\BaseGateway
  'credentials' => [
    'app_id'            => '',
    'alipay_public_key' => '', //支付宝公钥
    'app_private_key'   => '',//应用私钥
  ],
  "gateways"    => [
    "app"  => [
      'type'    => 'app',//对应\vitepay\alipay\gateway\App
      'sandbox' => true,
    ],
    "scan" => [
      'sandbox' => true,
      'type'    => 'scan',//对应\vitepay\alipay\gateway\Scan
    ],
    "wap"  => [
      'sandbox' => true,
      'type'    => 'wap',//对应\vitepay\alipay\gateway\Wap
    ],
    "web"  => [
      'sandbox' => true,
      'type'    => 'wap',//对应\vitepay\alipay\gateway\Web
    ],
  ],

];

```

使用
--

[](#使用)

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

相关支付
----

[](#相关支付)

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

License
-------

[](#license)

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

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

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

2085d 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 (6 commits)")

---

Tags

paymerchantthinkphp 6vitepayalipay pay

### Embed Badge

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

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

###  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)
