PHPackages                             achais/jstopay - 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. achais/jstopay

ActiveLibrary[Payment Processing](/categories/payments)

achais/jstopay
==============

聚速通-话费、流量、加油卡、视频直充 SDK for PHP

326PHPCI failing

Since Jun 18Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

 JSTOPay
=========

[](#-jstopay-)

 聚速通-话费、流量、加油卡、视频直充 SDK for PHP.

 让你忽略第三方的 Http 请求规则、加密方式和加密实现, 只需关注自己的业务代码

安装
--

[](#安装)

```
$ composer require achais/jstopay:dev-master -vvv
```

使用
--

[](#使用)

配置信息和实例化

```
use Achais\JSTOPay\JSTOPay;

$config = [
    'debug' => true, // 开启调试

    'key' => 'ea0c81*************cc65c1', // 替换成你自己的
    'user_id' => '8***0', // 替换成你自己的

    // 日志
    'log' => [
        'level' => 'debug',
        'permission' => 0777,
        'file' => '/tmp/jstopay-' . date('Y-m-d') . '.log', // 日志文件, 你可以自定义
    ],
];

$jstopay = new JSTOPay($config);
```

> 不管使用什么功能, 配置信息和实例化 JSTOPay 是必须的

#### 查询余额

[](#查询余额)

```
use Achais\JSTOPay\JSTOPay;

$config = []; // 配置信息如上
$jstopay = new JSTOPay($config);

$ret = $jstopay->unicomAync->queryBalance();

结果:
Collection {#294 ▼
  #items: array:5 [▼
    "status" => "success"
    "desc" => "交易成功"
    "code" => "00"
    "balance" => 48830
    "success" => true
  ]
}
```

> 返回的是一个 Collection 对象, 或者为 null

文档
--

[](#文档)

更多功能介绍请看源码或 Wiki.

贡献
--

[](#贡献)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/achais/lianlianpay/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/achais/lianlianpay/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

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://avatars.githubusercontent.com/u/7384071?v=4)[起风](/maintainers/achais)[@achais](https://github.com/achais)

### Embed Badge

![Health badge](/badges/achais-jstopay/health.svg)

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

###  Alternatives

[pagseguro/php

Biblioteca de integração com o PagSeguro

23260.3k6](/packages/pagseguro-php)

PHPackages © 2026

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