PHPackages                             vtoday/shucang - 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. vtoday/shucang

ActiveLibrary

vtoday/shucang
==============

v1.0.1(3y ago)138MITPHP

Since Aug 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/vtoday/shucang-php)[ Packagist](https://packagist.org/packages/vtoday/shucang)[ RSS](/packages/vtoday-shucang/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

今日数字藏品交易服务平台--PHP版SDK
=====================

[](#今日数字藏品交易服务平台--php版sdk)

### 安装

[](#安装)

```
composer require vtoday/shucang
```

### 客户端初始化

[](#客户端初始化)

```
include "./vendor/autoload.php";

$appId = "1002";
$privateKey = "MIIEvAIBADANBgkq......jkl9aD/5k8I/Hag==";
$publicKey = "MIIBIjANBgkq......IDAQAB";

try {
    $client = new \Vtoday\Shucang\Client($appId, $privateKey, $publicKey, false);

} catch (\Vtoday\Shucang\Exceptions\ConfigurationException $e) {
    //do something ...

}
```

### 调用`同步藏品信息`接口

[](#调用同步藏品信息接口)

```
try {
    $client->doRequest("collection.info.sync", [
        "product_id"   => "123",
        "product_name" => "cccccccccccc",
        //other fields......
        //注意字段值类型，需要严格匹配类型值
    ]);
} catch (\Vtoday\Shucang\Exceptions\InvalidParamException $e) {
    // do something ...

}
```

### 提供`查询用户信息`接口

[](#提供查询用户信息接口)

```
try {
    $method = "";
    [$method, $data] = $client->parseRequestData();

    $bizData = [];

    if ($method == "user.info") {
        $bizData = [
            "user_id" => "123", // 字符串类型
            "wallet_address" => "xxxxxx",
            "verify_sign" => "eeeeee",
        ];
    }
    // do something ......

    $response = $client->genSignResponse(\Vtoday\Shucang\Client::SUCCESS_CODE, "成功", $method, $bizData);

} catch (\Vtoday\Shucang\Exceptions\ApiException $exception) {
    $response = $client->genSignResponse($exception->getErrCode(), $exception->getErrMessage(), $method);
    // do something ......
}catch(\Exception $exception){
    $response = $client->genSignResponse("5500", $exception->getMessage(), $method);
    // do something ......
}

//return $response
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

2

Last Release

1340d ago

### Community

Maintainers

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

---

Top Contributors

[![weiyongsheng](https://avatars.githubusercontent.com/u/3038860?v=4)](https://github.com/weiyongsheng "weiyongsheng (9 commits)")

### Embed Badge

![Health badge](/badges/vtoday-shucang/health.svg)

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

PHPackages © 2026

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