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.

411PHP

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 2w 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 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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://avatars.githubusercontent.com/u/24319361?v=4)[Eric](/maintainers/EricGSX)[@EricGSX](https://github.com/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

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

791.3M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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