PHPackages                             sun-otc/sun-otc-open - 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. sun-otc/sun-otc-open

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

sun-otc/sun-otc-open
====================

php-sdk for SunOTC

v0.0.5(5y ago)1318[1 PRs](https://github.com/sunOTC/sunotc-open/pulls)MITPHPPHP &gt;=7.1

Since Jul 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sunOTC/sunotc-open)[ Packagist](https://packagist.org/packages/sun-otc/sun-otc-open)[ Docs](https://github.com/sunOTC/sunotc-open)[ RSS](/packages/sun-otc-sun-otc-open/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (7)Used By (0)

SunOTC-open-sdk-php
===================

[](#sunotc-open-sdk-php)

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

---

### 安装方法

[](#安装方法)

```
$ composer require sun-otc/sun-otc-open

```

### 使用方法

[](#使用方法)

```
use SunOTC\SunOTC;

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

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

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

```

### 链接

[](#链接)

-

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity45

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

Every ~8 days

Total

5

Last Release

2152d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/67744031?v=4)[SunOTC](/maintainers/SunOTC)[@sunOTC](https://github.com/sunOTC)

### Embed Badge

![Health badge](/badges/sun-otc-sun-otc-open/health.svg)

```
[![Health](https://phpackages.com/badges/sun-otc-sun-otc-open/health.svg)](https://phpackages.com/packages/sun-otc-sun-otc-open)
```

###  Alternatives

[yourls/yourls

Your Own URL Shortener

12.1k27.9k1](/packages/yourls-yourls)

PHPackages © 2026

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