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 1mo ago

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 32% of packages

Maintenance46

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

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

418d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5b40d7e5d3b86a516c3036769244ea98c95d6bd3ad421024403f5307cd6bac8?d=identicon)[itroadhd](/maintainers/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

[sylius/sylius

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

8.4k5.6M648](/packages/sylius-sylius)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[yoti/yoti-php-sdk

Yoti SDK for quickly integrating your PHP backend with Yoti

27539.9k1](/packages/yoti-yoti-php-sdk)[vin-sw/shopware-sdk

A PHP SDK for Shopware 6 Platform

122469.3k6](/packages/vin-sw-shopware-sdk)[commercetools/commercetools-sdk

The official PHP SDK for the commercetools Composable Commerce APIs

19281.5k](/packages/commercetools-commercetools-sdk)[mozex/anthropic-php

Anthropic PHP is a supercharged community-maintained PHP API client that allows you to interact with Anthropic API.

46365.1k13](/packages/mozex-anthropic-php)

PHPackages © 2026

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