PHPackages                             opensdk/suning - 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. opensdk/suning

ActiveLibaray[API Development](/categories/api)

opensdk/suning
==============

苏宁API SDK

v1.0.0(6y ago)32.3k1MITPHPPHP &gt;=7.0.0

Since Oct 11Pushed 6y ago1 watchersCompare

[ Source](https://github.com/beJuvenile/opensdk-suning)[ Packagist](https://packagist.org/packages/opensdk/suning)[ RSS](/packages/opensdk-suning/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

opensdk-suning
==============

[](#opensdk-suning)

#### 介绍

[](#介绍)

本类库是对苏宁开放平台API的封装
接口文档请参见 [苏宁开放平台](https://open.suning.com/)

#### 使用示例

[](#使用示例)

- 接口调用示例

```
require 'vendor/autoload.php';

use OpenSDK\Suning\Client;
use OpenSDK\Suning\Requests\Netalliance\CouponproductQueryRequest;

$c = new Client();
$c->appKey = 'You are appKey';
$c->appSecret = 'You are appSecret';
$req = new CouponproductQueryRequest();
$req->setPageNo(1);
$req->setPageSize(10);
$req->setPositionId('1');
$c->setRequest($req);
$result = $c->execute();

var_dump($result);

```

- 授权示例

```
require 'vendor/autoload.php';

use OpenSDK\Suning\OauthClient;

$c = new OauthClient();
$c->appKey = 'You are appKey';
$c->appSecret = 'You are appSecret';
// 获取网页授权链接
// $result = $c->buildWebAuthorizeUri();
// 获取APP授权链接
$result = $c->buildAppAuthorizeUri();
// 使用code换取access token
$result = $c->getAccessToken('6fd98f88ab5243d6b8f7b2779488c3aa');

var_dump($result);

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

2454d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2632156?v=4)[Eric Zhang](/maintainers/zhange)[@zhange](https://github.com/zhange)

---

Top Contributors

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

---

Tags

sdk

### Embed Badge

![Health badge](/badges/opensdk-suning/health.svg)

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

###  Alternatives

[appwilio/cdek-sdk

CDEK API SDK (cdek.ru)

406.5k](/packages/appwilio-cdek-sdk)[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)
