PHPackages                             nason/gw-supply-chain - 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. nason/gw-supply-chain

ActiveLibrary[API Development](/categories/api)

nason/gw-supply-chain
=====================

A API SDK for gwlp supply chain

v0.1.1(4y ago)14MITPHP

Since May 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/nason-ma/gw-supply-chain)[ Packagist](https://packagist.org/packages/nason/gw-supply-chain)[ RSS](/packages/nason-gw-supply-chain/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (6)Used By (0)

 gw-supply-chain
=================

[](#-gw-supply-chain-)

 A API SDK for gwlp supply chain.

[![StyleCI build status](https://camo.githubusercontent.com/c054579ad9e3f1d0d7bdbe13ef61ee997c2258a0904771050140b26fac77ab8d/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3337303632373534392f736869656c64)](https://camo.githubusercontent.com/c054579ad9e3f1d0d7bdbe13ef61ee997c2258a0904771050140b26fac77ab8d/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3337303632373534392f736869656c64)

安装
--

[](#安装)

```
$ composer require nason/gw-supply-chain -vvv
```

配置
--

[](#配置)

在使用本扩展之前，你需要通过 [广物供应链平台](http://gylp.gwulp.com) 获取到接口凭证：wid 和 token。

使用
--

[](#使用)

### 商品接口

[](#商品接口)

```
use Nason\GwSupplyChain\Product;

$wid = 'xxxxxxxxxxxxxxxxxxxxxxxx';
$token = 'xxxxxxxxxxxxxxxxxxxxxxxx';

$productApi = new Product($wid, $token);
```

#### 如：获取商品详情

[](#如获取商品详情)

```
$goodsId = 68;

$response = $productApi->getGoodsInfo($goodsId);
```

### 类目接口

[](#类目接口)

```
use Nason\GwSupplyChain\Category;

$wid = 'xxxxxxxxxxxxxxxxxxxxxxxx';
$token = 'xxxxxxxxxxxxxxxxxxxxxxxx';

$categoryApi = new Category($wid, $token);
```

#### 获取分类列表

[](#获取分类列表)

```
$page = 1;
$limit = 50;

$response = $categoryApi->getCategoryList($page, $limit);
```

#### 获取单个分类数据

[](#获取单个分类数据)

```
$categoryId = 1;

$response = $categoryApi->getCategoryInfo($categoryId);
```

### 订单接口

[](#订单接口)

```
use Nason\GwSupplyChain\Order;

$wid = 'xxxxxxxxxxxxxxxxxxxxxxxx';
$token = 'xxxxxxxxxxxxxxxxxxxxxxxx';

$orderApi = new Order($wid, $token);
```

#### 如：取消订单

[](#如取消订单)

```
$orderSn = 'xxxxxxxxxxxxxxxxxxxxx';

$response = $orderApi->cancelOrder($orderSn);
```

参考
--

[](#参考)

- [广物供应链开放平台](http://api.gylp.gwulp.com/docs.php)

License
-------

[](#license)

MIT

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Total

3

Last Release

1811d ago

### Community

Maintainers

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

---

Top Contributors

[![nason-ma](https://avatars.githubusercontent.com/u/64300557?v=4)](https://github.com/nason-ma "nason-ma (8 commits)")

### Embed Badge

![Health badge](/badges/nason-gw-supply-chain/health.svg)

```
[![Health](https://phpackages.com/badges/nason-gw-supply-chain/health.svg)](https://phpackages.com/packages/nason-gw-supply-chain)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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