PHPackages                             mantx/alipay-api-wrapper - 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. [API Development](/categories/api)
4. /
5. mantx/alipay-api-wrapper

ActiveLibrary[API Development](/categories/api)

mantx/alipay-api-wrapper
========================

API Wrapper for Alipay services

113.7k↑246.7%1PHP

Since Apr 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mantx/alipay-api-wrapper)[ Packagist](https://packagist.org/packages/mantx/alipay-api-wrapper)[ RSS](/packages/mantx-alipay-api-wrapper/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

alipay-api-wrapper
==================

[](#alipay-api-wrapper)

这里封装Alipay API接口的packagist包

1. 安装 composer require mantx/alipay-api-wrapper
2. 示例

//设置全局配置信息 \\Alipay\\Utils\\Config::initConfig($alipay\_config);

//建立请求 $request = new \\Alipay\\Request\\AlipayMerchantQrcodeCreateRequest(\[ "notify\_url" =&gt; 'http://birdsystem/callback', //business params 'secondary\_merchant\_industry' =&gt; '5812', 'secondary\_merchant\_id' =&gt; '123', 'secondary\_merchant\_name' =&gt; 'shawn store', 'store\_id' =&gt; 'A001', 'store\_name' =&gt; '李老板的东馆', 'trans\_currency' =&gt; 'GBP', 'currency' =&gt; 'GBP', // 'country\_code' =&gt; 'GB', // 'address' =&gt; 'Hangzhou Delixi building', 'notify\_mobile' =&gt; '13612345678' \]);

//或者如下设置请求数据 //$request = new \\Alipay\\Request\\AlipayMerchantQrcodeCreateRequest(); //$request-&gt;setNotifyUrl(''); //$request-&gt;setSecondaryMerchantIndustry('5812'); //$request-&gt;setSecondaryMerchantId('123'); //$request-&gt;setSecondaryMerchantName('shawn store'); //$request-&gt;setStoreId('A001'); //$request-&gt;setStoreName('李老板的东馆'); //$request-&gt;setTransCurrency('GBP'); //$request-&gt;setCurrency('GBP'); //$request-&gt;setNotifyMobile('13612345678');

try { $client = new \\Alipay\\AlipayClient(); $response = $client-&gt;execute($request); //var\_dump($response-&gt;toArray()); var\_dump($response-&gt;getQrcode()); var\_dump($response-&gt;getQrcodeImgUrl()); } catch (Exception $e) { print($e-&gt;getMessage()); var\_dump($e-&gt;getTraceAsString()); }

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![mantx](https://avatars.githubusercontent.com/u/872959?v=4)](https://github.com/mantx "mantx (45 commits)")

### Embed Badge

![Health badge](/badges/mantx-alipay-api-wrapper/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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