PHPackages                             xxutianyi/laravel-oauth-client - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. xxutianyi/laravel-oauth-client

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

xxutianyi/laravel-oauth-client
==============================

v1.0.0(11mo ago)02MITPHPPHP ^8.2

Since Jul 28Pushed 11mo agoCompare

[ Source](https://github.com/xxutianyi/laravel-oauth-client)[ Packagist](https://packagist.org/packages/xxutianyi/laravel-oauth-client)[ RSS](/packages/xxutianyi-laravel-oauth-client/feed)WikiDiscussions main Synced today

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

Laravel OAuth 客户端
=================

[](#laravel-oauth-客户端)

安装使用
----

[](#安装使用)

```
#添加依赖
composer require xxutianyi/laravel-oauth-client
```

```
#发布配置文件
php artisan vendor:publish --tag=oauth-client-config
```

```
#在.env文件填写配置信息
OAUTH_HOST=http://oauth-host.com
OAUTH_CALLBACK=/oauth/callback
OAUTH_CLIENT_ID=
OAUTH_CLIENT_SECRET=
```

```
//使用Facade
use Illuminate\Http\Request;
use XuDev\OAuthClient\Facade\OAuth

public function redirect(Request $request)
{
    return OAuth::redirect($request, ['user:read']);
}

public function callback(Request $request)
{
    $userInfo=OAuth::callback($request);
}
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance51

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

341d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/35088435?v=4)[Eddie Xu](/maintainers/xxutianyi)[@xxutianyi](https://github.com/xxutianyi)

---

Top Contributors

[![xxutianyi](https://avatars.githubusercontent.com/u/35088435?v=4)](https://github.com/xxutianyi "xxutianyi (13 commits)")

### Embed Badge

![Health badge](/badges/xxutianyi-laravel-oauth-client/health.svg)

```
[![Health](https://phpackages.com/badges/xxutianyi-laravel-oauth-client/health.svg)](https://phpackages.com/packages/xxutianyi-laravel-oauth-client)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[illuminate/auth

The Illuminate Auth package.

10528.2M1.2k](/packages/illuminate-auth)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k91.0k1](/packages/mike-bronner-laravel-model-caching)[illuminate/routing

The Illuminate Routing package.

1419.2M3.0k](/packages/illuminate-routing)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)

PHPackages © 2026

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