PHPackages                             fantasystudio/easypay - 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. fantasystudio/easypay

ActiveLibrary[Payment Processing](/categories/payments)

fantasystudio/easypay
=====================

Wechat and Alipay payment SDK

v2.4.0(7y ago)383.4k3Apache-2.0PHPPHP &gt;=5.5.0

Since Jun 14Pushed 7y ago3 watchersCompare

[ Source](https://github.com/thefantasystudio/easypay)[ Packagist](https://packagist.org/packages/fantasystudio/easypay)[ RSS](/packages/fantasystudio-easypay/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (18)Used By (0)

EasyPay
=======

[](#easypay)

轻松集成支付宝,微信支付 到您的业务逻辑中。

#### 我该怎么下载安装

[](#我该怎么下载安装)

```
composer require fantasystudio/easypay
```

#### 我想看看一些代码

[](#我想看看一些代码)

```
use \FantasyStudio\EasyPay\AliPay\Qr\Qr;

$qr = new Qr();
$qr->setAppId("201703300571632");
$qr->setSignType("RSA");
$qr->setPrivateKey("私钥内容,不要携带-----BEGIN RSA PRIVATE KEY-----");
$qr->purchase([
    "total_amount" => 0.01, "out_trade_no" => "2120960179264092", "subject" => "subjectaa"
]);

$result = $qr->sendPaymentRequest(); //发起扫码支付

var_dump($result->getRequestData()); //获取请求数据
var_dump($result->getResponseData()); //获取网关响应数据
var_dump($result->isSuccessful()); // 请求是否成功
```

#### 开始集成

[](#开始集成)

分类网关描述相关链接支付宝Qr扫码支付[官方文档](https://docs.open.alipay.com/194/106078/) | [使用文档](https://github.com/thefantasystudio/easypay/wiki/%E6%94%AF%E4%BB%98%E5%AE%9D-%E6%89%AB%E7%A0%81%E6%94%AF%E4%BB%98)支付宝Pos条码支付[官方文档](https://docs.open.alipay.com/194/106039/) | [使用文档](https://github.com/thefantasystudio/easypay/wiki/%E6%94%AF%E4%BB%98%E5%AE%9D-%E6%9D%A1%E7%A0%81%E6%94%AF%E4%BB%98)支付宝JSApi支付宝容器内支付(类似微信JSSDK支付)[官方文档](https://docs.open.alipay.com/api_1/alipay.trade.create) | [使用文档](https://github.com/thefantasystudio/easypay/wiki/%E6%94%AF%E4%BB%98%E5%AE%9D-%E5%AE%B9%E5%99%A8%E5%86%85%E6%94%AF%E4%BB%98)支付宝Web电脑网站支付[官方文档](https://docs.open.alipay.com/270) | 未完成支付宝Wap手机网站支付[官方文档](https://docs.open.alipay.com/203) | 未完成支付宝AppAPP支付[官方文档](https://docs.open.alipay.com/204/105465/) | [使用文档](https://github.com/thefantasystudio/easypay/wiki/%E6%94%AF%E4%BB%98%E5%AE%9DApp%E6%94%AF%E4%BB%98)微信支付Pos刷卡支付[官方文档](https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=5_1) | [使用文档](https://github.com/thefantasystudio/easypay/wiki/%E5%BE%AE%E4%BF%A1-%E5%88%B7%E5%8D%A1%E6%94%AF%E4%BB%98)微信支付JSApi公众号支付(JSSDK)[官方文档](https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_1) | [使用文档](https://github.com/thefantasystudio/easypay/wiki/%E5%BE%AE%E4%BF%A1-%E5%85%AC%E4%BC%97%E5%8F%B7%E6%94%AF%E4%BB%98)微信支付Native扫码支付[官方文档](https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=6_1) | [使用文档](https://github.com/thefantasystudio/easypay/wiki/%E5%BE%AE%E4%BF%A1-%E6%89%AB%E7%A0%81%E6%94%AF%E4%BB%98)微信支付AppAPP支付[官方文档](https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=8_1) | [使用文档](https://github.com/thefantasystudio/easypay/wiki/%E5%BE%AE%E4%BF%A1-APP%E6%94%AF%E4%BB%98)微信支付H5H5支付[官方文档](https://pay.weixin.qq.com/wiki/doc/api/H5.php?chapter=15_1) | [使用文档](https://github.com/thefantasystudio/easypay/wiki/%E5%BE%AE%E4%BF%A1-H5%E6%94%AF%E4%BB%98)

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

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

Recently: every ~65 days

Total

17

Last Release

2738d ago

Major Versions

v1.0.1 → 2.0.02017-06-21

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.0

v2.3.5PHP &gt;=5.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/40b2904a509ed7701bb1a1bc49230e71e70cec4b97042f7f22fe2607fc825681?d=identicon)[Nothing](/maintainers/Nothing)

---

Tags

alipaywechatweixin

### Embed Badge

![Health badge](/badges/fantasystudio-easypay/health.svg)

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

PHPackages © 2026

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