PHPackages                             sunotc/sdk-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sunotc/sdk-php

AbandonedLibrary[Utility &amp; Helpers](/categories/utility)

sunotc/sdk-php
==============

php sdk for sunotc.otc

v1.0.5(6y ago)0327MITPHPPHP &gt;=5.3.0

Since Jun 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/jinglian96/SunOtc)[ Packagist](https://packagist.org/packages/sunotc/sdk-php)[ Docs](http://github.com/jinglian96/SunOtc)[ RSS](/packages/sunotc-sdk-php/feed)WikiDiscussions master Synced today

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

SunOtc OTC SDK
==============

[](#sunotc-otc-sdk)

> 基于PHP的OTC商户api接口SDK

---

### 安装方法

[](#安装方法)

```
$ composer require sunotc/sdk-php

```

### 使用方法

[](#使用方法)

```
use SunOtc\OtcService

    $data       = '{"app_id":"123","merc_order_id":"200611184930170114"}';
    $OtcService = (new OtcService(Dictionary::PUBLIC_KEY, Dictionary::PRI_KEY));
    $OtcService->getOrderMsg($data);
    //                //查询交易限制
    $data       = '{"app_id":"123"}';
    $OtcService = (new OtcService(Dictionary::PUBLIC_KEY, Dictionary::PRI_KEY));
    $OtcService->getTradeLimit($data);*/

    //查询商户资产
     $data = '{"app_id":"123","merc_order_id":"200611184930170114"}';
     $OtcService = (new OtcService(Dictionary::PUBLIC_KEY,Dictionary::PRI_KEY));
     $OtcService->getMercAsset($data);

    //        //查询价格
    $data       = '{"app_id":"123","coin":"USDT"}';
    $OtcService = (new OtcService(Dictionary::PUBLIC_KEY, Dictionary::PRI_KEY));
    $OtcService->getTradePrice($data);

//返回数据
$address_info  = '{
                      "code":0,
                      "message":"success",
                      "data":[
                          {
                              "pay_type":"BANK",
                              "amount_min":1000,
                              "amount_max":5000
                          },
                          {
                              "pay_type":"WECHAT",
                              "amount_min":1000,
                              "amount_max":5000
                          },
                          {
                              "pay_type":"ALIPAY  ",
                              "amount_min":1000,
                              "amount_max":5000
                          }
                      ],
                      "time":1592729822
                  }'；

```

### 链接

[](#链接)

-

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

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

Unknown

Total

1

Last Release

2202d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/83a6f3f40a653a4ce8630aad59aeff26d0f2046d0277d27f9d942f160ed40d05?d=identicon)[wayrui](/maintainers/wayrui)

---

Top Contributors

[![jinglian96](https://avatars.githubusercontent.com/u/67220905?v=4)](https://github.com/jinglian96 "jinglian96 (11 commits)")

### Embed Badge

![Health badge](/badges/sunotc-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/sunotc-sdk-php/health.svg)](https://phpackages.com/packages/sunotc-sdk-php)
```

PHPackages © 2026

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