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 6d 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

Maturity32

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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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