PHPackages                             onex/allinpay - 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. onex/allinpay

ActiveLibrary

onex/allinpay
=============

allinpay package

1.0.3(6y ago)069MITPHPPHP &gt;=7.1

Since Dec 10Pushed 6y agoCompare

[ Source](https://github.com/shopex/allinpay)[ Packagist](https://packagist.org/packages/onex/allinpay)[ RSS](/packages/onex-allinpay/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

allinpay
========

[](#allinpay)

通联支付 version 2.1.2

### 配置要求

[](#配置要求)

```
"php": ">=7.1",
"monolog/monolog": "^1.23"

```

### 安装

[](#安装)

```
composer require onex/allinpay
```

### 配置文件

[](#配置文件)

```
return [
    /** - 必填配置` - **/
    // 商户ID
    'sysid' => env('ALLINPAY_SYSID', '1902271423530xxxxxxx'),
    // 接口地址
    'server_url' => env('ALLINPAY_SERVER_URL', 'http://xxx.xxx.xxx.xxx:xxxx/service/soa'),
    // 商户私钥
    'private_key_path' => env('ALLINPAY_PRIVATE_KEY_PATH', storage_path('allinpay_cert/1902271423530xxxxx.pfx')),
    // 商户私钥
    'tl_cert_path' => env('ALLINPAY_TL_CERT_PATH', storage_path('allinpay_cert/19022714235304xxxxx.cer')),
    // 用户密码
    'private_password' => env('ALLINPAY_PRIVATE_PASSWORD', '123456'),
    // 版本
    'version' => env('ALLINPAY_VERSION', '2.1.2'),
    // 日志
    'log_path' => env('ALLINPAY_VERSION', storage_path('logs/tonglian.log')),
];

```

### 普通使用

[](#普通使用)

```
// 普通调用
$merchantRequest = new Onex\Allinpay\Requests\MerchantRequest();
$merchantRequest->setSysid(null);
$merchantService = new \Onex\Allinpay\Port\MerchantService($allinpay, $merchantRequest);
$respone = $merchantService->queryReserveFundBalance()
var_dump($respone);
/*
return array(5) {
  ["status"]=>
  string(7) "success"
  ["status_code"]=>
  int(200)
  ["error"]=>
  int(0)
  ["code"]=>
  int(0)
  ["data"]=>
  array(4) {
    ["sysid"]=>
    string(19) "1902271423530473681"
    ["sign"]=>
    string(172) "CB6v9E9tkgb30gRuCTBYatEh/9o0KT63DZyUSz+0wugViLTNY5Apu9Q8ocBnYNafRX9mRXloqGoaFhEu4gdfZu761FMHPZghOZZsJmKsTx8abx5DEv4gPGpYLcPb0taALuGBOz+f8h6Nhyhjaycct209sFX+lhTx+pla2Ek8Uvw="
    ["signedValue"]=>
    string(102) "{"balance":0,"account_name":"yuntest20181121-退款户","account_no":"200604000005721000","def_clr":0}"
    ["status"]=>
    string(2) "OK"
  }
}
*/
```

### laravel 使用

[](#laravel-使用)

laravel 将服务提供者添加到`config/app.php`

```
Onex\Allinpay\Providers\AllinpayApiProvider::class

```

lumen 将服务提供者添加到`bootstrap/app.php`

```
$app->register(Canren\Mongodb\MongoServiceProvider::class);

```

```
// 普通调用
app('allinpay.merchant.request')->setSysid(null);
$respone = app('allinpay')->merchant()->queryReserveFundBalance()
var_dump($respone);
/*
return array(5) {
  ["status"]=>
  string(7) "success"
  ["status_code"]=>
  int(200)
  ["error"]=>
  int(0)
  ["code"]=>
  int(0)
  ["data"]=>
  array(4) {
    ["sysid"]=>
    string(19) "1902271423530473681"
    ["sign"]=>
    string(172) "CB6v9E9tkgb30gRuCTBYatEh/9o0KT63DZyUSz+0wugViLTNY5Apu9Q8ocBnYNafRX9mRXloqGoaFhEu4gdfZu761FMHPZghOZZsJmKsTx8abx5DEv4gPGpYLcPb0taALuGBOz+f8h6Nhyhjaycct209sFX+lhTx+pla2Ek8Uvw="
    ["signedValue"]=>
    string(102) "{"balance":0,"account_name":"yuntest20181121-退款户","account_no":"200604000005721000","def_clr":0}"
    ["status"]=>
    string(2) "OK"
  }
}
*/
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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

4

Last Release

2342d ago

### Community

Maintainers

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

---

Top Contributors

[![canren](https://avatars.githubusercontent.com/u/7986022?v=4)](https://github.com/canren "canren (8 commits)")[![huangjinbing](https://avatars.githubusercontent.com/u/13633806?v=4)](https://github.com/huangjinbing "huangjinbing (1 commits)")

---

Tags

Allinpay

### Embed Badge

![Health badge](/badges/onex-allinpay/health.svg)

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

###  Alternatives

[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k4](/packages/elgg-elgg)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[drevops/git-artifact

Package artifact from your codebase in CI and push it to a separate git repo.

2133.2k](/packages/drevops-git-artifact)[doppar/framework

The Doppar Framework

366.7k8](/packages/doppar-framework)

PHPackages © 2026

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