PHPackages                             adeelmemon/sociallogin - 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. adeelmemon/sociallogin

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

adeelmemon/sociallogin
======================

A Laravel package for Google, GitHub, and other social logins.

v1.0.0(1y ago)02MITPHPPHP ^8.2

Since Feb 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/adeelmemon123/sociallogin)[ Packagist](https://packagist.org/packages/adeelmemon/sociallogin)[ RSS](/packages/adeelmemon-sociallogin/feed)WikiDiscussions main Synced 1mo ago

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

**Laravel Social Login Package**
================================

[](#laravel-social-login-package)

**Installation Guide**
----------------------

[](#installation-guide)

### **1️⃣ Install the Package via Composer**

[](#1️⃣-install-the-package-via-composer)

Run the following command to install the package:

```
composer require adeelmemon/sociallogin
OR
composer require adeelmemon/sociallogin:dev-main
```

### **2️⃣ Run Database Migrations**

[](#2️⃣-run-database-migrations)

Your package requires a `users` table with additional fields like `provider`, `provider_id`, `avatar`, etc.

Run the following command to update the database:

```
php artisan migrate
```

**User Table Example**
----------------------

[](#user-table-example)

Here is how the `User` table should look:

[![User Table](https://github.com/adeelmemon123/sociallogin/raw/main/database.png?raw=true)](https://github.com/adeelmemon123/sociallogin/blob/main/database.png?raw=true)

### **3️⃣ Publish Configuration File**

[](#3️⃣-publish-configuration-file)

To publish the package configuration file, run:

```
php artisan vendor:publish --tag=config
```

### **4️⃣ Install Social Login in the User Model**

[](#4️⃣-install-social-login-in-the-user-model)

Run the following command to automatically update the `User` model with the required `HasSocialLogin` trait and fillable properties:

```
php artisan sociallogin:install
```

**User Model Example**
----------------------

[](#user-model-example)

Here is how the `User.php` model should look:

protected $fillable = \[ 'name', 'email', 'password', 'provider', 'provider\_id', 'avatar', 'email\_verified\_at' \];

[![User Model](https://github.com/adeelmemon123/sociallogin/raw/c055184d9dafbcc09e44c8ed011426742c59ee89/User.png?raw=true)](https://github.com/adeelmemon123/sociallogin/blob/c055184d9dafbcc09e44c8ed011426742c59ee89/User.png?raw=true)

**Usage Guide**
---------------

[](#usage-guide)

### **Adding Social Login Buttons in Blade View**

[](#adding-social-login-buttons-in-blade-view)

Place the following code inside your Blade template to allow users to log in via Google, Facebook, or GitHub:

```

     Login with Google

     Login with Facebook

     Login with GitHub

```

### **Environment Configuration**

[](#environment-configuration)

Add the following environment variables in your `.env` file:

```
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
GOOGLE_REDIRECT_URI=http://127.0.0.1:8000/auth/oauth/google/callback

GITHUB_CLIENT_ID=your_github_client_id
GITHUB_CLIENT_SECRET=your_github_client_secret
GITHUB_REDIRECT_URI=http://127.0.0.1:8000/auth/oauth/github/callback

FACEBOOK_CLIENT_ID=your_facebook_client_id
FACEBOOK_CLIENT_SECRET=your_facebook_client_secret
FACEBOOK_REDIRECT_URI=http://127.0.0.1:8000/auth/oauth/facebook/callback
```

### **Final Steps**

[](#final-steps)

- Ensure your `User` model is updated with `HasSocialLogin` and proper `$fillable` properties.
- Make sure you have correctly configured your Google, GitHub, and Facebook apps for OAuth authentication.
- Test the login routes to verify that authentication works as expected.

Now your Laravel Social Login package is ready to use! 🚀

### **1️⃣ Uninstall the Package via Composer**

[](#1️⃣-uninstall-the-package-via-composer)

Run the following command to uninstall the package:

```
composer remove adeelmemon/sociallogin
```

Contact For any inquiries or support, feel free to reach out:

📧 Email: 📞 Business Contact: +92 300 2630498 (WhatsApp available)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance46

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

440d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/59a36f8d75eaae161652ca4784354ff9a1180ecaa0a694d9d3ed328da5584788?d=identicon)[Adeel Memon](/maintainers/Adeel%20Memon)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/adeelmemon-sociallogin/health.svg)

```
[![Health](https://phpackages.com/badges/adeelmemon-sociallogin/health.svg)](https://phpackages.com/packages/adeelmemon-sociallogin)
```

###  Alternatives

[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[overtrue/laravel-follow

User follow unfollow system for Laravel.

1.2k404.7k5](/packages/overtrue-laravel-follow)[metrogistics/laravel-azure-ad-oauth

Provides single-sign-on ability to Microsoft Azure Active Directory enabled apps.

8679.1k1](/packages/metrogistics-laravel-azure-ad-oauth)[phhung1901/google_one_tap

Login with google one tap/google popup login

2716.1k](/packages/phhung1901-google-one-tap)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)

PHPackages © 2026

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