PHPackages                             jushuitan/open-api-sdk - 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. [API Development](/categories/api)
4. /
5. jushuitan/open-api-sdk

ActiveLibrary[API Development](/categories/api)

jushuitan/open-api-sdk
======================

聚水潭开放平台 PHP SDK

1.3.0(1y ago)13MITPHPPHP &gt;=7.1

Since Mar 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/itroadhd/jushuitan-open-api-sdk)[ Packagist](https://packagist.org/packages/jushuitan/open-api-sdk)[ RSS](/packages/jushuitan-open-api-sdk/feed)WikiDiscussions main Synced today

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

聚水潭开放平台 PHP SDK
===============

[](#聚水潭开放平台-php-sdk)

这是聚水潭开放平台的PHP SDK，提供了简单易用的接口调用方式。

更新日志
----

[](#更新日志)

### v1.3.0

[](#v130)

- 更新guzzlehttp/guzzle依赖版本至^6.5

安装
--

[](#安装)

通过Composer安装:

```
composer require jushuitan/open-api-sdk
```

基本使用
----

[](#基本使用)

### Yii2框架中使用

[](#yii2框架中使用)

1. 在配置文件中添加组件配置：

```
'components' => [
    'jushuitan' => [
        'class' => 'Jushuitan\OpenSDK\JushuitanComponent',
        'appKey' => 'your-app-key',
        'appSecret' => 'your-app-secret',
    ],
]
```

2. 使用示例：

```
// 获取访问令牌
$result = Yii::$app->jushuitan->getAccessToken('authorization-code');

// 刷新访问令牌
$result = Yii::$app->jushuitan->refreshToken('refresh-token');

// 发送API请求
$result = Yii::$app->jushuitan->request('GET', '/open/shops/query', [
    'page_no' => 1,
    'page_size' => 20,
]);
```

### 独立使用

[](#独立使用)

```
$client = new \Jushuitan\OpenSDK\Client('your-app-key', 'your-app-secret');

// 获取访问令牌
$result = $client->getAccessToken('authorization-code');

// 刷新访问令牌
$result = $client->refreshToken('refresh-token');

// 发送API请求
$result = $client->request('GET', '/open/shops/query', [
    'page_no' => 1,
    'page_size' => 20,
]);
```

版本历史
----

[](#版本历史)

### v1.3.0 (2024-01-10)

[](#v130-2024-01-10)

- 调整guzzlehttp/guzzle依赖版本至^6.5，提升SDK兼容性
- 优化依赖包管理

### v1.0.0 (2024-01-09)

[](#v100-2024-01-09)

- 首次发布稳定版本
- 实现基础的OAuth认证功能
- 支持API请求和签名生成
- 提供Yii2框架集成支持
- 完善的文档和使用示例

许可证
---

[](#许可证)

本项目采用MIT许可证，详情请参见[LICENSE](LICENSE)文件。

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance42

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

475d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9365865?v=4)[jinhui Zhang](/maintainers/itroadhd)[@itroadhd](https://github.com/itroadhd)

---

Top Contributors

[![itroadhd](https://avatars.githubusercontent.com/u/9365865?v=4)](https://github.com/itroadhd "itroadhd (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/jushuitan-open-api-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/jushuitan-open-api-sdk/health.svg)](https://phpackages.com/packages/jushuitan-open-api-sdk)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M737](/packages/sylius-sylius)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k39](/packages/neuron-core-neuron-ai)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)

PHPackages © 2026

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