PHPackages                             zy/jstan - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. zy/jstan

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zy/jstan
========

聚水潭-php-sdk

0153↓100%PHP

Since May 23Pushed 1y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

聚水潭 sdk（2.0）
============

[](#聚水潭-sdk20)

[![Latest Stable Version](https://camo.githubusercontent.com/de0838b4847e456beefbde4651f88083de3b542f0ec7a7a8b0faf10792d01231/687474703a2f2f706f7365722e707567782e6f72672f7a6d6f79692f6a7374616e2f76)](https://packagist.org/packages/zmoyi/jstan) [![Total Downloads](https://camo.githubusercontent.com/232c1a702f585998329eed5de5e387e263120efb6382780157d68bcf262b16db/687474703a2f2f706f7365722e707567782e6f72672f7a6d6f79692f6a7374616e2f646f776e6c6f616473)](https://packagist.org/packages/zmoyi/jstan) [![License](https://camo.githubusercontent.com/6a2b021df159439ecfc5163f906e3ddf8808f21dd77d605af805ba4d1ad8bbe2/687474703a2f2f706f7365722e707567782e6f72672f7a6d6f79692f6a7374616e2f6c6963656e7365)](https://packagist.org/packages/zmoyi/jstan) [![Monthly Downloads](https://camo.githubusercontent.com/61425267fe4922300bcad1f4a387fd99fa83e5ed89d9186c3db737d3ff65b68c/687474703a2f2f706f7365722e707567782e6f72672f7a6d6f79692f6a7374616e2f642f6d6f6e74686c79)](https://packagist.org/packages/zmoyi/jstan) [![Daily Downloads](https://camo.githubusercontent.com/b572ec3876afa2a4c866ed40559c5842ad75fedaefc4bd71e77496a354e0535d/687474703a2f2f706f7365722e707567782e6f72672f7a6d6f79692f6a7374616e2f642f6461696c79)](https://packagist.org/packages/zmoyi/jstan) [![Version](https://camo.githubusercontent.com/bb90c6b0a916066b84f995c68b434892379e726407522b2f6410c5ba794d1318/687474703a2f2f706f7365722e707567782e6f72672f7a6d6f79692f6a7374616e2f76657273696f6e)](https://packagist.org/packages/zmoyi/jstan) [![PHP Version Require](https://camo.githubusercontent.com/d0237d4774d4c453d70fd8fd0ada516f45fde3415ea018597fd69608b8e3176b/687474703a2f2f706f7365722e707567782e6f72672f7a6d6f79692f6a7374616e2f726571756972652f706870)](https://packagist.org/packages/zmoyi/jstan)

介绍
--

[](#介绍)

修改支持php &gt;= 7.1

要求
--

[](#要求)

- php &gt;= 7.1

安装
--

[](#安装)

```
composer require zy/jstan

```

### laravel 使用移步至 [laravel-jsTan](https://github.com/zmoyi/laravel-jstan)

[](#laravel-使用移步至-laravel-jstan)

配置
--

[](#配置)

> 如果下面的示例比较晦涩，请查看测试用例

`config`全局配置

```
private array $config = [
  // 授权地址
  'authUrl' => 'https://openweb.jushuitan.com/auth',
  // 接口地址
  'baseUrl' => 'https://dev-api.jushuitan.com/',
  // 授权接口地址
  'apiUrl' => 'https://openapi.jushuitan.com/',
  // 授权token
  'accessToken' => 'b7e3b1e24e174593af8ca5c397e53dad',
  // 应用key
  'appKey' => 'b0b7d1db226d4216a3d58df9ffa2dde5',
  // 应用secret
  'appSecret' => '99c4cef262f34ca882975a7064de0b87',
  // 版本号
  'version' => '2',
  // 字符集
  'charset' => 'utf-8',
  // 是否验证证书
  'verify' => false,
  // 超时时间
  'timeout' => 0
];
```

### api调用

[](#api调用)

```
use JsTan\Client;
use JsTan\Route;

/****/

$client = Client::getInstance($this->config);
$route = Route::getInstance();

//路由可使用 Route::QUERY_SHOPS || $route->getRoute('QUERY_SHOPS') || 'open/logisticscompany/query'
// 常量传入，getRoute 传入，字符串传入，看自己喜好

/**
* 查询门店列表（请求示例）
*/
$response = $client->request($route->getRoute('QUERY_SHOPS'), [
  'page_index' => 1,
  'page_size' => 10
]);

/**
* 获取access_token （请求示例）
*/
$response = $client->getAccessToken('001');

/**
* 刷新access_token （请求示例）
*/
$response = $client->refreshToken('001');

print_r($response);
```

License
-------

[](#license)

JsTan is made available under the MIT License (MIT). Please see License File for more information.

交流
--

[](#交流)

点击链接加入群聊[【聚水潭phpsdk使用交流Q】](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=kz7Ytn8pSTbFeYzF3pVgrof2_PbsTNzk&authKey=XhdLyWKahlJlDOMVin3toWxkpwF6R6OEN5Ijw2epahb7kQ9a5LuIpXOdjAIBxijI&noverify=0&group_code=689699469)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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/0ca885b3b62946fda91d63a825cad2cd4fc5bb45844d3bb36fc66e47041ee03d?d=identicon)[zy1141527178](/maintainers/zy1141527178)

---

Top Contributors

[![zmoyi](https://avatars.githubusercontent.com/u/48953751?v=4)](https://github.com/zmoyi "zmoyi (18 commits)")[![zy1141527178](https://avatars.githubusercontent.com/u/49544623?v=4)](https://github.com/zy1141527178 "zy1141527178 (17 commits)")[![fangmuke](https://avatars.githubusercontent.com/u/26641510?v=4)](https://github.com/fangmuke "fangmuke (1 commits)")

### Embed Badge

![Health badge](/badges/zy-jstan/health.svg)

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

###  Alternatives

[symfony/polyfill-php84

Symfony polyfill backporting some PHP 8.4+ features to lower PHP versions

13274.8M132](/packages/symfony-polyfill-php84)[odolbeau/phone-number-bundle

Integrates libphonenumber into your Symfony application

24910.3M11](/packages/odolbeau-phone-number-bundle)[jwadhams/json-logic-php

Build rules with complex comparisons and boolean operators, serialized as JSON, and execute them in PHP

1641.7M6](/packages/jwadhams-json-logic-php)[zumba/swivel

Strategy driven feature toggles

209135.7k5](/packages/zumba-swivel)[konnco/filament-safely-delete

343.0k](/packages/konnco-filament-safely-delete)

PHPackages © 2026

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