PHPackages                             ericivan/github-oauth2 - 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. ericivan/github-oauth2

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

ericivan/github-oauth2
======================

1.0.0(8y ago)014MITPHPPHP &gt;=5.5

Since Apr 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ericivan/github-oauth2)[ Packagist](https://packagist.org/packages/ericivan/github-oauth2)[ RSS](/packages/ericivan-github-oauth2/feed)WikiDiscussions 1.0.0 Synced 1mo ago

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

基本配置
====

[](#基本配置)

> app.php 加入 \\Github\\GithubServiceProvider::class,

> aliases 加入 Facade 'Github' =&gt; \\Github\\Facades\\Github::class,

> serives.php 中加入配置项

```
        'github'=>[
            'client_id' => 'client_id',
            'client_secret' => 'client_secret',
            'redirect_url' => 'redirect_url',
    ]
```

### 基本使用

[](#基本使用)

> 获取登录跳转地址

```
    Github::with('github')->redirect();
```

> 回调地址获取登录用户

```
    $user=Github::with('github')->user();
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

2939d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/105959f5fbb4b93e1f0756a6fcffb14f28f0d633998a449ba0dc2eb9eb50a81d?d=identicon)[Ericivan](/maintainers/Ericivan)

---

Top Contributors

[![ericivan](https://avatars.githubusercontent.com/u/19731556?v=4)](https://github.com/ericivan "ericivan (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ericivan-github-oauth2/health.svg)

```
[![Health](https://phpackages.com/badges/ericivan-github-oauth2/health.svg)](https://phpackages.com/packages/ericivan-github-oauth2)
```

###  Alternatives

[overtrue/socialite

A collection of OAuth 2 packages.

1.4k5.5M86](/packages/overtrue-socialite)[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)[rahul900day/laravel-captcha

Different types of Captcha implementation for Laravel Application.

10715.9k](/packages/rahul900day-laravel-captcha)[simplesamlphp/simplesamlphp-module-oidc

A SimpleSAMLphp module adding support for the OpenID Connect protocol

5016.9k1](/packages/simplesamlphp-simplesamlphp-module-oidc)[clerkinc/backend-php

2755.0k](/packages/clerkinc-backend-php)[kinde-oss/kinde-auth-php

Kinde PHP SDK for authentication

2369.5k3](/packages/kinde-oss-kinde-auth-php)

PHPackages © 2026

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