PHPackages                             smartjson/vip - 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. smartjson/vip

ActiveLibaray

smartjson/vip
=============

唯品会API SDK, union, vip

v1.0.2(6y ago)062MITPHPPHP &gt;=7.0.0

Since Mar 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/smartjsoncom/vip)[ Packagist](https://packagist.org/packages/smartjson/vip)[ RSS](/packages/smartjson-vip/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

SmartJson/Vip
=============

[](#smartjsonvip)

#### 介绍

[](#介绍)

本类库是对唯品会开放平台API的封装 接口文档请参见 [唯品会开放平台](https://vop.vip.com/)

#### 关键字段说明

[](#关键字段说明)

```
appkey:创建应用时生成，为接口调用凭证之一
appsecret：创建应用时生成，为接口调用凭证之一
accessToken：通过Oauth认证授权时生成，参考：http://vop.vip.com/doccenter/viewdoc/33
sign:调用签名，建议在异常捕获中记录该值，可以提高开放平台定位异常的效率，具体生成规则参考：http://vop.vip.com/doccenter/viewdoc/8#A4

```

#### 安装

[](#安装)

```
composer require smartjson/vip

```

#### 使用示例

[](#使用示例)

- 接口调用示例

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

use SmartJson\Vip\Client;
use SmartJson\Vip\Requests\Union\GenPidRequest;

$c = new Client();
$c->appKey = 'You are appKey';
$c->appSecret = 'You are appSecret';
$req = new GenPidRequest();
$req->setPidNameList(['test01','test02']);
$c->setRequest($req);
$result = $c->execute();

var_dump($result);
```

- 授权示例

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

use SmartJson\Vip\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('12345643234');

var_dump($result);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

2256d ago

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/smartjson-vip/health.svg)

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

PHPackages © 2026

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