PHPackages                             viethqb/laravel-socialite - 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. viethqb/laravel-socialite

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

viethqb/laravel-socialite
=========================

Laravel Socialite By Viethqb

1.0.7(1y ago)010MITPHPPHP ^8.1|^8.2

Since Nov 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/viethqb01/laravel-socialite)[ Packagist](https://packagist.org/packages/viethqb/laravel-socialite)[ RSS](/packages/viethqb-laravel-socialite/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Laravel Socialite
=================

[](#laravel-socialite)

This base will help to oauth2 login with Google, Facebook, Github

Install
-------

[](#install)

```
composer require viethqb/laravel-socialite
```

Config class from config/app.php
--------------------------------

[](#config-class-from-configappphp)

```
'providers' => ServiceProvider::defaultProviders()->merge([
        Viethqb\LaravelSocialite\Providers\SocialiteServiceProvider::class
    ])->toArray(),
```

Publish configuration file and Base Classes
-------------------------------------------

[](#publish-configuration-file-and-base-classes)

```
php artisan vendor:publish --provider="Viethqb\LaravelSocialite\Providers\SocialiteServiceProvider"
```

create file .env
----------------

[](#create-file-env)

```
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
GOOGLE_REDIRECT=http://your-app-url/auth/google/callback

FACEBOOK_CLIENT_ID=your-facebook-client-id
FACEBOOK_CLIENT_SECRET=your-facebook-client-secret
FACEBOOK_REDIRECT=http://your-app-url/auth/facebook/callback

GITHUB_ID=your-github--client-id
GITHUB_SECRET=your-github-client-secret
GITHUB_REDIRECT=http://your-app-url/auth/github/callback
```

Add config to file config/services.php
--------------------------------------

[](#add-config-to-file-configservicesphp)

```
   'google' => [
        'client_id' => env('GOOGLE_CLIENT_ID'),
        'client_secret' => env('GOOGLE_CLIENT_SECRET'),
        'redirect' => env('GOOGLE_REDIRECT'),
    ],
    'facebook' => [
        'client_id' => env('FACEBOOK_CLIENT_ID'),
        'client_secret' => env('FACEBOOK_CLIENT_SECRET'),
        'redirect' => env('FACEBOOK_REDIRECT'),
    ],
    'github' => [
        'client_id' => env('GITHUB_ID'),
        'client_secret' => env('GITHUB_SECRET'),
        'redirect' => env('GITHUB_REDIRECT'),
    ],
```

Use to function base
====================

[](#use-to-function-base)

```
extends Base/SocialiteService.php

  public function redirectToProvider(SocialiteEnum $provider);

  public function handleProviderCallback(SocialiteEnum $provider);
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

599d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/139447701?v=4)[Hoàng Việt](/maintainers/viethqb01)[@viethqb01](https://github.com/viethqb01)

### Embed Badge

![Health badge](/badges/viethqb-laravel-socialite/health.svg)

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

###  Alternatives

[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5752.3M18](/packages/directorytree-ldaprecord-laravel)[illuminate/auth

The Illuminate Auth package.

10528.2M1.2k](/packages/illuminate-auth)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6804.7k6](/packages/hasinhayder-tyro)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1563.2k4](/packages/masterix21-laravel-licensing)

PHPackages © 2026

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