PHPackages                             shopxo/phalapi2-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. shopxo/phalapi2-alipay

ActiveLibrary[Payment Processing](/categories/payments)

shopxo/phalapi2-alipay
======================

支付宝支付基于支付宝api2.0

016PHP

Since Jul 11Pushed 6y agoCompare

[ Source](https://github.com/gongfuxiang/phalapi2-alipay)[ Packagist](https://packagist.org/packages/shopxo/phalapi2-alipay)[ RSS](/packages/shopxo-phalapi2-alipay/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

支付宝支付
=====

[](#支付宝支付)

支付宝支付基于支付宝api2.0接口实现

安装和配置
-----

[](#安装和配置)

修改项目下的composer.json文件，并添加：

```
    "shopxo/phalapi2-alipay": "dev-master"

```

然后执行`composer update`。

注册
--

[](#注册)

在/path/to/phalapi/config/di.php文件中，注册：

```
$di->alipay = function() {
    return new \PhalApi\Alipay\Lite();
};
```

使用
--

[](#使用)

发起支付

```
\PhalApi\DI()->alipay->Pay();
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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/ff4ce067e18415e7bba48670d526a829179d55f4490cfaad3524dc2413fa4e12?d=identicon)[shopxo](/maintainers/shopxo)

### Embed Badge

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

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

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