PHPackages                             wangchengtao/tianque - 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. wangchengtao/tianque

ActiveLibrary[API Development](/categories/api)

wangchengtao/tianque
====================

天阙开放平台 SDK

1.0.12(3mo ago)0351MITPHPPHP &gt;=7.4CI passing

Since Apr 14Pushed 2w ago1 watchersCompare

[ Source](https://github.com/wangchengtao/tianque)[ Packagist](https://packagist.org/packages/wangchengtao/tianque)[ RSS](/packages/wangchengtao-tianque/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (6)Versions (14)Used By (1)

概要
--

[](#概要)

天阙开放平台 SDK

主要目的
----

[](#主要目的)

1. 集成 Composer
2. 编码风格遵循 PSR-12
3. 单元测试
4. 框架集成
5. 补充 PHPDoc

Version Guidance
----------------

[](#version-guidance)

- php &gt;=7.4

安装
--

[](#安装)

```
composer require wangchengtao/tianque
```

For laravel 6+

```
composer require wangchengtao/laravel-tianque
```

如何使用
----

[](#如何使用)

- Notes: More Usages please refer to test cases

```
use Summer\TianQue\Kernel\AopClient;
use Summer\TianQue\Kernel\Config;
use Summer\TianQue\Kernel\AopFactory;
use Summer\TianQue\Kernel\RequestFactory;
use Summer\TianQue\Request\Merchant\QueryApplyInfoRequest;

$config = new Config(
    'https://openapi-test.tianquetech.com',
    'your orgId',
    'your privateKey',
    '天阙平台公钥',
);

$client = new AopClient($config);

// or get client by factory
//$config = [
//   'domain' => 'https://openapi-test.tianquetech.com',
//   'org_id' => 'your orgId',
//   'private_key' => 'your privateKey',
//   'public_key' => '天阙平台公钥',
//];
//$client = AopFactory::client($config);

// 自定义 reqId 须实现 GeneratorInterface 接口
//$client->setGenerator(CustomRandomGenerator::class);

$request = new QueryApplyInfoRequest();
$request->setId('123');

// or init through __construct
//$request = new QueryApplyInfoRequest(['id' => '123']);

// or use factory
//$request = RequestFactory::create('POST', '/merchant/specialApplication/queryApplyInfo', [
//   'id' => '123',
//]);

$res = $client->execute($request);

var_dump($res->getCode());
var_dump($res->getRespData());
```

测试
--

[](#测试)

- `./vendor/bin/phpunit`

扩展
--

[](#扩展)

1. 添加更多请求对象 须继承 `Summer\TianQue\Request\Request`, 推荐使用工厂创建请求对象

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance89

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

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

Recently: every ~84 days

Total

13

Last Release

109d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14216412?v=4)[王成涛](/maintainers/wangchengtao)[@wangchengtao](https://github.com/wangchengtao)

---

Top Contributors

[![wangchengtao](https://avatars.githubusercontent.com/u/14216412?v=4)](https://github.com/wangchengtao "wangchengtao (41 commits)")

---

Tags

sdktianque

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/wangchengtao-tianque/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[facebook/php-business-sdk

PHP SDK for Facebook Business

91624.2M37](/packages/facebook-php-business-sdk)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M45](/packages/tencentcloud-tencentcloud-sdk-php)[facebook/php-ads-sdk

PHP SDK for Facebook Business

9214.2M8](/packages/facebook-php-ads-sdk)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[resend/resend-php

Resend PHP library.

617.2M43](/packages/resend-resend-php)

PHPackages © 2026

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