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 today

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 41% 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

2990d 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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[overtrue/socialite

A collection of OAuth 2 packages.

1.4k5.6M90](/packages/overtrue-socialite)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[ellaisys/aws-cognito

AWS Cognito package that allows Auth and other related features using the AWS SDK for PHP

121242.9k1](/packages/ellaisys-aws-cognito)

PHPackages © 2026

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