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

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

tiup/tiupsdk-laravel
====================

laravel tiup sdk

0.4(8y ago)0681TiUPPHP

Since May 26Pushed 8y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (5)Used By (0)

### TiUP SDK for Laravel

[](#tiup-sdk-for-laravel)

### Installation

[](#installation)

```
composer require tiup/tiupsdk-laravel
```

#### 配置

[](#配置)

修改 config/app.php

在providers中增加

```
Tiup\LaravelTiupSdk\LaravelTiupSdkServiceProvider::class,
```

在 aliases 中增加

```
'Tiup' => Tiup\LaravelTiupSdk\TiupFacade::class,
```

#### 运行下面复制配置文件到 config目录。

[](#运行下面复制配置文件到-config目录)

```
php artisan vendor:publish  --provider="Tiup\LaravelTiupSdk\LaravelTiupSdkServiceProvider"
```

#### .env 增加以下配置

[](#env-增加以下配置)

```
TIUP_CLIENT_ID=client_id
TIUP_CLIENT_SECRET=client_secret
TIUP_AUTH_HOST=https://test.tiup.cn/
TIUP_API_HOST=https://test.tiup.cn/

```

运行 `php artisan serve` 启动即可

应用首页

登录回调

代码示例

```
Route::get('/', function () {
	 //获取登录地址
    $url = Tiup::getAuthorizationUrl('http://127.0.0.1:8000/oauth/callback');
    return redirect($url);
});

Route::get('/oauth/callback', function () {
	//登录成功回调，获取用户信息
    $token = \Tiup::getAccessToken();
    $userinfo = \Tiup::me($token);
    dd($userinfo);
});
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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

Total

4

Last Release

3220d 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 (2 commits)")

### Embed Badge

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

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

###  Alternatives

[tourze/workerman-yii2

541.3k](/packages/tourze-workerman-yii2)

PHPackages © 2026

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