PHPackages                             skyfile/suningsdk - 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. skyfile/suningsdk

ActiveLibaray[API Development](/categories/api)

skyfile/suningsdk
=================

苏宁API SDK

0141PHP

Since Sep 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/skyfile/suning-union-sdk)[ Packagist](https://packagist.org/packages/skyfile/suningsdk)[ RSS](/packages/skyfile-suningsdk/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

SuningSDK
=========

[](#suningsdk)

#### 介绍

[](#介绍)

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

#### 使用示例

[](#使用示例)

- 接口调用示例

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

use SuningSDK\Client;
use SuningSDK\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 SuningSDK\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

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity33

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a1075f8a45cc3990d263c16bec22962dbb2c5d0117e8fb2cb4da20339668d94?d=identicon)[skyfile1](/maintainers/skyfile1)

---

Top Contributors

[![skyfile](https://avatars.githubusercontent.com/u/6679752?v=4)](https://github.com/skyfile "skyfile (5 commits)")

### Embed Badge

![Health badge](/badges/skyfile-suningsdk/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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