PHPackages                             stbz-supply/php-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. stbz-supply/php-sdk

ActiveLibrary[API Development](/categories/api)

stbz-supply/php-sdk
===================

STBZ supply API SDK for PHP

v1.0.2(5y ago)36.3k—0%1MITPHPPHP &gt;=7.0

Since Jun 15Pushed 5y ago2 watchersCompare

[ Source](https://github.com/stbz-supply/php-sdk)[ Packagist](https://packagist.org/packages/stbz-supply/php-sdk)[ Docs](http://www.stbz.net/)[ RSS](/packages/stbz-supply-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

supply-php-sdk
--------------

[](#supply-php-sdk)

supply-php-sdk是北京胜天半子有限公司官方SDK的Composer封装，支持php项目的供应链API对接，整合了京东API、1688API、淘宝天猫API等上游渠道。

安装
--

[](#安装)

- 通过composer，这是推荐的方式，可以使用composer.json 声明依赖，或者运行下面的命令。

```
$ composer require stbz-supply/php-sdk
```

- 直接下载安装，SDK 没有依赖其他第三方库，但需要参照 composer的autoloader，增加一个自己的autoloader程序。

运行环境
----

[](#运行环境)

```
php: >=7.0

```

使用方法
----

[](#使用方法)

```
    use Stbz\Api\SupplyClient;
    //appkey、appSecret 在开放平台获取 https://open.jxhh.com
    $appKey = "your appkey";
    $appSecret = "your appSecret";

    try {
    	$supplyClient = new SupplyClient($appKey,$appSecret);
    } catch (OssException $e) {
    	printf(__FUNCTION__ . "creating supplyClient instance: FAILED\n");
    	printf($e->getMessage() . "\n");
    	return null;
    }

    //获取商品列表
    $param = ['page'=>1, 'limit'=>20, 'source'=>2];//请求参数
    $method = 'get';//请求方法
    $action = 'v2/Goods/Lists';//请求资源名
    $response = $supplyClient->getApiResponse($method,$action,$param);
```

\##供应链平台

官网网址

开放平台地址

选品平台地址

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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 ~55 days

Total

5

Last Release

1935d ago

Major Versions

v0.1.1 → v1.0.02020-06-17

### Community

Maintainers

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

---

Top Contributors

[![stbz-supply](https://avatars.githubusercontent.com/u/24424460?v=4)](https://github.com/stbz-supply "stbz-supply (11 commits)")

---

Tags

sdksupplystbz

### Embed Badge

![Health badge](/badges/stbz-supply-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/stbz-supply-php-sdk/health.svg)](https://phpackages.com/packages/stbz-supply-php-sdk)
```

###  Alternatives

[mocking-magician/coinbase-pro-sdk

Library for coinbase pro API calls

223.2k](/packages/mocking-magician-coinbase-pro-sdk)

PHPackages © 2026

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