PHPackages                             gopayplus/gopay-php-sdk - 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. gopayplus/gopay-php-sdk

ActiveLibrary[Payment Processing](/categories/payments)

gopayplus/gopay-php-sdk
=======================

A Gopay SDK for PHP.

1.0.2(1y ago)031MITPHP

Since Nov 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/gopayplus/gopay-php-sdk)[ Packagist](https://packagist.org/packages/gopayplus/gopay-php-sdk)[ RSS](/packages/gopayplus-gopay-php-sdk/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

趣付宝（Gopay）支付平台快速接入 PHP-SDK
==========================

[](#趣付宝gopay支付平台快速接入-php-sdk)

### 安装

[](#安装)

```
composer require gopayplus/gopay-php-sdk
```

快速使用
----

[](#快速使用)

### 转账-创建订单

[](#转账-创建订单)

```
$Config = new Config($this->host,  $this->mch_id, $this->app_id, $this->secret);
$Transfer = new Transfer($Config);
$order_no = "T010030330202";
$account_name = "李白";
$account_no = "6224121229828888";
$bank_name = "湖北农信";
$bank_code = "PSBC";
$province = "湖北省";
$city = "荆州市";
$amount = 100; //分
$entry_code = EntryType::BANK_CARD.value; // $entry_code = 入账方式： WX_CASH-微信零钱; ALIPAY_CASH-支付宝转账; BANK_CARD-银行卡
$if_code = IfCode::ALIAQFPAY.value; // 安全发
$ip = "";
$remark = "";
$notify_url = "";
$data = $Transfer->transferOrder($if_code, $entry_code,$order_no, $amount, $account_no, $account_name, $bank_name, $ip, $remark, $notify_url);
```

### 转账-订单查询

[](#转账-订单查询)

```
$Config = new Config("host", "merchant_id",  "app_id", "secret");
$Transfer = new Transfer($Config);
$Transfer->query("transfer_id", "out_order_no");
```

### 转账-额度查询

[](#转账-额度查询)

```
$Config = new Config($this->host,  $this->mch_id, $this->app_id, $this->secret);
$Transfer = new Transfer($Config);
$Transfer->balance("aliaqfpay");
```

### 转账-查询回单

[](#转账-查询回单)

```
$Config = new Config($this->host,  $this->mch_id, $this->app_id, $this->secret);
$Transfer = new Transfer($Config);
$Transfer->receipt("transfer_id", "out_order_no");
```

注：为了提高开发者问题的响应时效，请联系我们官方支付渠道。

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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

Total

3

Last Release

552d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/186943317?v=4)[gopayplus](/maintainers/gopayplus)[@gopayplus](https://github.com/gopayplus)

### Embed Badge

![Health badge](/badges/gopayplus-gopay-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/gopayplus-gopay-php-sdk/health.svg)](https://phpackages.com/packages/gopayplus-gopay-php-sdk)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[statamic/cms

The Statamic CMS Core Package

4.8k3.6M984](/packages/statamic-cms)[shetabit/multipay

PHP Payment Gateway Integration Package

293361.0k4](/packages/shetabit-multipay)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[imdhemy/google-play-billing

Google Play Billing

491.5M5](/packages/imdhemy-google-play-billing)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)

PHPackages © 2026

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