PHPackages                             gsx/oauthconnect - 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. gsx/oauthconnect

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

gsx/oauthconnect
================

Third-pary login ,support WeChat,qq,weibo,baidu,gitee,github etc.

511PHP

Since Jul 11Pushed 6y agoCompare

[ Source](https://github.com/EricGSX/OauthConnect)[ Packagist](https://packagist.org/packages/gsx/oauthconnect)[ RSS](/packages/gsx-oauthconnect/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

OauthConnect
============

[](#oauthconnect)

QQ、微信、微博、Github、Gitee、百度等第三方登陆

### 使用

[](#使用)

#### 安装composer包

[](#安装composer包)

1. composer require gsx/oauthconnect dev-master （推荐）
2. 下载源码

#### 定义自动加载

[](#定义自动加载)

1. composer下载不需要单独配置
2. 源码下载需要修改项目composer.json文件

```
        "files": [
            "vendor/OauthConnect/autoload.php"
        ]

```

#### 授权页面调用

[](#授权页面调用)

```
use Oauthconnect\GuoOauth;
$obj = new GuoOauth($config);   # config配置可参照配置文件，不建议直接修改扩展，可动态配置
$obj->setPlatForm('github');
obj->authCode();

```

#### 回调页面调用

[](#回调页面调用)

```
use Oauthconnect\GuoOauth;
$obj = new GuoOauth($config);  # 也可以使用$obj->setConfig($config);
$userinfo = $obj->userinfo();

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a9ac9914ce3883196c826461a2e6389580a4707eda130aef362e28120eda999a?d=identicon)[EricGSX](/maintainers/EricGSX)

---

Top Contributors

[![EricGSX](https://avatars.githubusercontent.com/u/24319361?v=4)](https://github.com/EricGSX "EricGSX (17 commits)")

### Embed Badge

![Health badge](/badges/gsx-oauthconnect/health.svg)

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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