PHPackages                             tiup/tiupsdk - 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. tiup/tiupsdk

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

tiup/tiupsdk
============

tiup sdk

0.6(8y ago)01.7k11TiUPPHP

Since May 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/tiup/tiupsdk-php)[ Packagist](https://packagist.org/packages/tiup/tiupsdk)[ RSS](/packages/tiup-tiupsdk/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (4)Dependencies (1)Versions (7)Used By (1)

TiUP开放平台PHP SDK，使用前请先仔细阅读相关文档

### Installation

[](#installation)

```
composer require tiup/tiupsdk
```

### Usage

[](#usage)

初始化

```
$options = array(
	'auth_host' => 'https://test.tiup.cn/',
	'api_host' => 'https://test.tiup.cn/',
	'client_id' => 'client_id',
	'client_secret' => 'client_secret'
	);
$tiup = new Tiup\Tiup($options);
```

获取登录链接

```
$url = $tiup->getAuthorizationUrl('http://localhost/callback.php');
echo '使用TiUP账号登录';
```

登录成功回调页面获取用户信息

```
$token = $tiup->getAccessToken();
$user = $tiup->me($token);
```

更多SDK文档请访问

#### 帮助和反馈

[](#帮助和反馈)

在使用中有疑问可加入我们的开发者讨论群 `628071204`

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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 ~56 days

Recently: every ~70 days

Total

6

Last Release

2995d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/02de4e764696775900a33eccf385d44389eb2f20fc0b9a24b42d9ad40fb2d9ab?d=identicon)[tiup](/maintainers/tiup)

---

Top Contributors

[![tiupcn](https://avatars.githubusercontent.com/u/10737532?v=4)](https://github.com/tiupcn "tiupcn (6 commits)")[![lizhangwei](https://avatars.githubusercontent.com/u/5462063?v=4)](https://github.com/lizhangwei "lizhangwei (1 commits)")

### Embed Badge

![Health badge](/badges/tiup-tiupsdk/health.svg)

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

PHPackages © 2026

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