PHPackages                             kaiyum2012/socialite-auth - 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. kaiyum2012/socialite-auth

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

kaiyum2012/socialite-auth
=========================

Plug and use of Laravel Socialite package for Laravel App

07PHP

Since Dec 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/kaiyum2012/socialite-auth)[ Packagist](https://packagist.org/packages/kaiyum2012/socialite-auth)[ RSS](/packages/kaiyum2012-socialite-auth/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (2)Used By (0)

(DRAFT) Socialite Auth for Laravel Application
==============================================

[](#draft-socialite-auth-for-laravel-application)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d8b2b3a9e845f2d2afd1d15e500dce5fb19afdb0c83f14cb690cea277d31360d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b616979756d323031322f736f6369616c6974652d617574682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kaiyum2012/socialite-auth)[![Total Downloads](https://camo.githubusercontent.com/e9a6fe795c3f4160b0bf9abceaccb10cf4096c3b18828fa9c33cba39fd340874/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b616979756d323031322f736f6369616c6974652d617574682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kaiyum2012/socialite-auth)[![GitHub Actions](https://github.com/kaiyum2012/socialite-auth/actions/workflows/main.yml/badge.svg)](https://github.com/kaiyum2012/socialite-auth/actions/workflows/main.yml/badge.svg)

Supported social providers

- Google
- GitHub and

more on the way!

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require kaiyum2012/socialite-auth
```

Laravel without auto-discovery: If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

```
Kaiyum2012\SocialiteAuth\SocialiteAuthServiceProvider::class,

```

Usage
-----

[](#usage)

Set following `env` variables.

```
SOCIAL_AUTH_PROVIDERS= #e.g. github|facebook|google|twitter
SOCIAL_AUTH_ROUTE=/auth/social
SOCIAL_AUTH_CALLBACK=/auth/social/callback

GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_AUTH_CALLBACK= #example: https://finance.local/auth/social/callback/github

GOOGLE_CLIENT_ID= #
GOOGLE_CLIENT_SECRET= #
GOOGLE_REDIRECT= #example: https://finance.local/auth/social/callback/google
```

Set URLs as following:

#### Auth Route

[](#auth-route)

```
route('socialite-auth.route',{'provider':{provider}})
# {provider} = github|google
# e.g route('socialite-auth.route',{'provider':'github'})
```

#### Callback Route

[](#callback-route)

```
route('socialite-auth.callback',{'provider':{provider}})
# {provider} = github|google
# e.g route('socialite-auth.callback',{'provider':'github'})
```

#### Migration

[](#migration)

```
php artisan migrate
```

#### Configuration

[](#configuration)

`User` Model should implement `Sociable` Contract

```
class User implements Sociable

```

and use `HasSocialAccounts` trait to implement `Sociable` Contract

```
use HasSocialAccounts;

```

For some reason if you would like to override New user creation using social account can be done as following:

```
 public function createUserUsing(array $attributes = []): Sociable
 {
      return $this->fill($attributes);
 }

```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Abdulkaiyum Shaikh](https://github.com/kaiyum2012)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Special Thanks to [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 57.1% 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/36873c701719ace39fc29f323cf992a300c0b5374e8ae5db44d35754c843123f?d=identicon)[kaiyum2012](/maintainers/kaiyum2012)

---

Top Contributors

[![kaiyum2021](https://avatars.githubusercontent.com/u/93943959?v=4)](https://github.com/kaiyum2021 "kaiyum2021 (4 commits)")[![kaiyum2012](https://avatars.githubusercontent.com/u/5669573?v=4)](https://github.com/kaiyum2012 "kaiyum2012 (3 commits)")

### Embed Badge

![Health badge](/badges/kaiyum2012-socialite-auth/health.svg)

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

###  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)
