PHPackages                             xiaoliang/joinpay - 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. xiaoliang/joinpay

ActiveProject

xiaoliang/joinpay
=================

php dome

v0.1.7(5y ago)024MITPHPPHP &gt;=5.6.0

Since Jun 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/wanghaoliang/joinpay)[ Packagist](https://packagist.org/packages/xiaoliang/joinpay)[ RSS](/packages/xiaoliang-joinpay/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (8)Used By (0)

汇聚支付
====

[](#汇聚支付)

这个是个人集成的汇聚支付PHP dome请注意：

- 1.非官方提供，非官方提供，非官方提供
- 2.如有不可请参照汇聚支付官网dome进行修改
- 3.如有问题可向  发送邮件提出问题
- 4.代码仅作参考，使用请谨慎，出问题本人不负责

\##安装

```
composer require xiaoliang/joinpay

```

\##示例

- $me 为日志相关
- 1 添加分账

```
use Joinpay\Merchant;

$Merchant =new  Merchant();
$me = array();
$Merchant->setAltLoginName('78')
           ->setPhoneNo('1714568946')
            ->setLegalPerson('李四')
            ->setIdCardNo('100101199812055656')
            ->setAltMchName('个体户李四')
            ->setBankAccountNo('2164598498549')
            ->addMerchant($me);
```

- 2 签订协议-发送短信

```
use Joinpay\BankCard;

$BankCard = new BankCard();
$me = array();
$info = $BankCard->setBankCardNo('622206123456')
        ->setCvv('123')
        ->setIdNo('100101199412124656')
        ->setExpireDate('23/02')
        ->setMchOrderNo('A123456')
        ->setMobileNo('17182988498')
        ->setPayerName('李四')
        ->bankToSms($me);
```

- 3 签订协议-验证短信

```
use Joinpay\BankCard;

$BankCard = new BankCard();
$me = array();
$info=$BankCard->setMchOrderNo('A123456')
                ->setSmsCode('456456')
                ->verifySms($me);
```

- 4 协议支付

```
use Joinpay\Payment;

$Payment = new Payment();
$me = array();

$Payment->setMchOrderNo('P4985541')
        ->setOrderAmount('10000')
        ->setAppLat('0.30549654')
        ->setAppLng('100.459544')
        ->setAppIp('124.123.122.111')
        ->setChMerCode('777777777777')
        ->setRateAmount('56')
        ->setBankCardNo('6585555989489898')
        ->fastPayment($me);
```

- 5 直接支付

```
use Joinpay\Payment;

$Payment = new Payment();
$me = array();

$Payment->setMchOrderNo('P4985541')
        ->setOrderAmount('10000')
        ->setAppLat('0.30549654')
        ->setAppLng('100.459544')
        ->setAppIp('124.123.122.111')
        ->setRateAmount('56')
        ->setPayerName('李四')
        ->setBankCardNo('6585555989489898')
        ->setIdNo('100101199412137878')
        ->setMobileNo('18191513121')
        ->setExpireDate('42/03')
        ->setCvv('123')
        ->setChMerCode('777777777777')
        ->directPay($me);
```

- 6.查询支付

```
use Joinpay\Payment;

$Payment = new Payment();
$me = array();
$info =  $Payment->setMchOrderNo('P4985541')
                ->setOrgMchReqTime(date('Y-m-d H:i:s'))//下单时间
                ->queryPayment($me);
```

- 7.商户到账

```
use Joinpay\ToAccount;

$ToAccount = new ToAccount();
$me = array();
$info =  $ToAccount->setMchOrderNo('P789654')
        ->setBankAccountNo('6555555555')
        ->setAltMchNo('777777**********')
        ->setRateAmount('1')//平台服务费
        ->setSettleAmount('99')//结算金额
        ->toUser($me);
```

- 8.到账查询

```
use Joinpay\ToAccount;

$ToAccount = new ToAccount();
$me = array();
$info =  $ToAccount->setMchOrderNo('P789654')
        ->queryToAccount($me);
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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.

###  Release Activity

Cadence

Every ~0 days

Total

7

Last Release

2161d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/384c2c57ce3e610c1353ddd32689d6b1a02f767c4791962143eefb453ad4bc8b?d=identicon)[Xia\_Xiaoliang](/maintainers/Xia_Xiaoliang)

---

Top Contributors

[![wanghaoliang](https://avatars.githubusercontent.com/u/35416127?v=4)](https://github.com/wanghaoliang "wanghaoliang (26 commits)")

### Embed Badge

![Health badge](/badges/xiaoliang-joinpay/health.svg)

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

PHPackages © 2026

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