PHPackages                             akkyoh/socialite\_github - 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. akkyoh/socialite\_github

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

akkyoh/socialite\_github
========================

Github OAuth2 Provider for Laravel Socialite

1.1.2(9y ago)0211PHPPHP ^5.6 || ^7.0

Since Jul 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/akkyoh/socialite_github)[ Packagist](https://packagist.org/packages/akkyoh/socialite_github)[ RSS](/packages/akkyoh-socialite-github/feed)WikiDiscussions master Synced today

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

Github OAuth2 Provider for Laravel Socialite
============================================

[](#github-oauth2-provider-for-laravel-socialite)

[![Latest Stable Version](https://camo.githubusercontent.com/78af949774dd378bfb15fb20312252a8ebac5a14523775d68fe007d14ccec166/68747470733a2f2f706f7365722e707567782e6f72672f616b6b796f682f736f6369616c6974655f6769746875622f762f737461626c652e737667)](https://packagist.org/packages/akkyoh/socialite_github)[![Total Downloads](https://camo.githubusercontent.com/0ea8ba8beb5cae5df11e171b6abdb09630708701842aff0a0d6036192dfb4f23/68747470733a2f2f706f7365722e707567782e6f72672f616b6b796f682f736f6369616c6974655f6769746875622f646f776e6c6f6164732e737667)](https://packagist.org/packages/akkyoh/socialite_github)[![Latest Unstable Version](https://camo.githubusercontent.com/caf37e725fa96119ae8bbf27a7baf5f43d056e80891278a813f1d68309a70c30/68747470733a2f2f706f7365722e707567782e6f72672f616b6b796f682f736f6369616c6974655f6769746875622f762f756e737461626c652e737667)](https://packagist.org/packages/akkyoh/socialite_github)

Install
-------

[](#install)

**1. COMPOSER**

```
composer require akkyoh/socialite_github

```

**2. SERVICE PROVIDER**

- Remove Laravel\\Socialite\\SocialiteServiceProvider from your providers\[\] array in config\\app.php if you have added it already.
- Add \\SocialiteProviders\\Manager\\ServiceProvider::class to your providers\[\] array in config\\app.php.

```
// For example
'providers' => [
    // a whole bunch of providers
    // remove 'Laravel\Socialite\SocialiteServiceProvider',
    \SocialiteProviders\Manager\ServiceProvider::class, // add
];

```

- If you would like to use the Socialite Facade, you need to [install it](https://laravel.com/docs/5.0/authentication#social-authentication).

**3. ADD THE EVENT AND LISTENERS**

- Add SocialiteProviders\\Manager\\SocialiteWasCalled event to your listen\[\] array in &lt;app\_name&gt;/Providers/EventServiceProvider.
- Add your listeners (i.e. the ones from the providers) to the SocialiteProviders\\Manager\\SocialiteWasCalled\[\] that you just created.
- The listener that you add for this provider is 'Akkyoh\\SocialiteGithub\\GithubExtendSocialite@handle',.
- Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.

```
// For example
protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // add your listeners (aka providers) here
        'Akkyoh\SocialiteGithub\GithubExtendSocialite@handle',
    ],
];

```

**4. ENVIRONMENT VARIABLES**

If you add environment values to your .env as exactly shown below, **you do not need to add an entry to the services array**.

###### APPEND PROVIDER VALUES TO YOUR .ENV FILE

[](#append-provider-values-to-your-env-file)

```
// other values above
GITHUB_KEY=yourkeyfortheservice
GITHUB_SECRET=yoursecretfortheservice
GITHUB_REDIRECT_URI=https://example.com/login

```

###### ADD TO CONFIG/SERVICES.PHP.

[](#add-to-configservicesphp)

You do not need to add this if you add the values to the .env exactly as shown above. The values below are provided as a convenience in the case that a developer is not able to use the .env method

```
'github' => [
    'client_id' => env('GITHUB_KEY'),
    'client_secret' => env('GITHUB_SECRET'),
    'redirect' => env('GITHUB_REDIRECT_URI'),
],

```

USAGE
=====

[](#usage)

You should now be able to use it like you would regularly use Socialite (assuming you have the facade installed):

```
return Socialite::driver('github') -> redirect();

```

RESOURCES
=========

[](#resources)

[Socialite Providers](http://socialiteproviders.github.io/)[Laravel Socialite Docs](https://github.com/laravel/socialite)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

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

Total

2

Last Release

3622d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3147258?v=4)[Евгений Русаченко](/maintainers/akkyoh)[@akkyoh](https://github.com/akkyoh)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/akkyoh-socialite-github/health.svg)

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

###  Alternatives

[socialiteproviders/apple

Apple OAuth2 Provider for Laravel Socialite

599.1M13](/packages/socialiteproviders-apple)[socialiteproviders/microsoft

Microsoft OAuth2 Provider for Laravel Socialite

346.9M19](/packages/socialiteproviders-microsoft)[socialiteproviders/instagram

Instagram OAuth2 Provider for Laravel Socialite

401.9M5](/packages/socialiteproviders-instagram)[socialiteproviders/microsoft-azure

Microsoft Azure OAuth2 Provider for Laravel Socialite

566.8M24](/packages/socialiteproviders-microsoft-azure)[socialiteproviders/laravelpassport

LaravelPassport OAuth2 Provider for Laravel Socialite

621.3M8](/packages/socialiteproviders-laravelpassport)[socialiteproviders/discord

Discord OAuth2 Provider for Laravel Socialite

422.3M21](/packages/socialiteproviders-discord)

PHPackages © 2026

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