PHPackages                             springjk/ploypay - 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. springjk/ploypay

ActiveLibrary[Payment Processing](/categories/payments)

springjk/ploypay
================

招商银行聚合支付

012PHP

Since Nov 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/springjk/ploypay)[ Packagist](https://packagist.org/packages/springjk/ploypay)[ RSS](/packages/springjk-ploypay/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Polypay for ThinkPHP6
=====================

[](#polypay-for-thinkphp6)

安装
--

[](#安装)

> composer require springjk/polypay

配置
--

[](#配置)

> 配置文件位于 `config/polypay.php`

### 公共配置

[](#公共配置)

```

[
    'use_sandbox' => true,
    'appid'=>'8ab74856-8772-45c9-96db-54cb30ab9f74',//APP ID
    'secret'=>'5b96f20a-011f-4254-8be8-9a5ceb2f317f',//APP SECRET
    'private_key'=>'D5F2AFA24E6BA9071B54A8C9AD735F9A1DE9C4657FA386C09B592694BC118B38',// 商户私钥
    'cmb_key'=>'MFkwEwYHKoZIzj0CAQYIKoEcz1UBgi0DQgAE6Q+fktsnY9OFP+LpSR5Udbxf5zHCFO0PmOKlFNTxDIGl8jsPbbB/9ET23NV+acSz4FEkzD74sW2iiNVHRLiKHg==',// 招行公钥
    'mer_id'=>'3089991074200M1',// 商户 ID
    'user_id'=>'N003401513',// 收银员 ID
    'notify_url'=>'http://www.laoqianjunzi.con/notify',
]

```

### 两个例子

[](#两个例子)

```
namespace app\order;

use polypay\payment\Client;
//
class orderPay{

    //微信统一下单
    public function pay1(){
        // 业务字段
        $bizContent = [
            "subAppId"=>"wxcb09c54c91986108",//子公众帐号ID（必传）
            'orderId'    => date('YmdHis').random_int(1000, 9999),
            "tradeType"=> "JSAPI",//交易类型 APP/MWEB/JSAPI（必传）
            "tradeScene"=> "OFFLINE",//交易场景
            "body"=> "xxx-生活服务",
            'payValidTime'=>'1000',
            'currencyCode' => '156',//交易币种，默认156，目前只支持人民币（156）
            "spbillCreateIp"=>"192.168.1.10",
            'txnAmt' => '1',//交易金额，单位为分（必传）
            'mchReserved' => '1',
            'subOpenId'=>'osd7d5Z9S_t5OCaoQoGbhEaxKjmY',
        ];
        $client=new Client();
        $ret=  $client->onlinePay($bizContent);
    }

    //收款码申请
    public function pay2(){
        // 业务字段
        $bizContent = [
            'orderId'    => date('YmdHis').random_int(1000, 9999),
            'payValidTime'=>'1000',
            'notifyUrl' => 'https://baidu.com',
            'txnAmt' => '1',//交易金额，单位为分（必传）
            "body"=> "XXXX-生活服务",
            "tradeScene"=> "OFFLINE",//交易场景
        ];
        $client=new Client();
        $ret=  $client->qrcodeapply($bizContent);
    }

}

```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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/2088850ac601bbf781f6516914db731a3d314a10067f607bc7a16df284d56e84?d=identicon)[springjk](/maintainers/springjk)

---

Top Contributors

[![springjk](https://avatars.githubusercontent.com/u/7900609?v=4)](https://github.com/springjk "springjk (5 commits)")

### Embed Badge

![Health badge](/badges/springjk-ploypay/health.svg)

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

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