PHPackages                             pimplesushant/laravelsocialiteapi - 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. pimplesushant/laravelsocialiteapi

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

pimplesushant/laravelsocialiteapi
=================================

Social Login for Laravel API

1.0.2(7y ago)131539[4 issues](https://github.com/pimplesushant/laravelsocialiteapi/issues)PHP

Since Jun 21Pushed 6y ago2 watchersCompare

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

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

Laravel Socialite API
=====================

[](#laravel-socialite-api)

A powerful package designed to implement social signup and signin using access\_token in Laravel. This package takes care of Facebook and Google+ social signup and signin as of now. We'll be adding more services soon.

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

[](#installation)

This package is availabe on composer. `composer require pimplesushant/laravelsocialiteapi`

Alternatively you can edit your `composer.json` and add "pimplesushant/laravelsocialiteapi": "^1.0" and `composer update`

Usage
-----

[](#usage)

To use this package you'll need to follow required steps of [Laravel Passport](https://laravel.com/docs/passport). You can make following changes in files as follows :

**1. /.env**

```
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=

FACEBOOK_CLIENT_ID=
FACEBOOK_CLIENT_SECRET=
FACEBOOK_CLIENT_REDIRECT=

GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_CLIENT_REDIRECT=
GOOGLE_DEVELOPER_KEY=

```

Then,

```
php artisan migrate

```

and

```
php artisan passport:install

```

**2. /app/User.php**

```
use Laravel\Passport\HasApiTokens;
use HasApiTokens;

```

and

```
public function social_accounts()
{
	return $this->hasMany(\Pimplesushant\Laravelsocialiteapi\SocialAccount::class)->with('social_accounts');
}

```

**3. /app/Providers/AuthServicePorvider.php**

```
use Laravel\Passport\Passport;

```

and

```
Passport::routes(); //in boot()

```

**4. /config/auth.php**

```
'api' => [
    'driver' => 'passport',
    'provider' => 'users',
],

```

**5. /config/services.php**

```
'facebook' => [
    'client_id' => env('FACEBOOK_CLIENT_ID'),
    'client_secret' => env('FACEBOOK_CLIENT_SECRET'),
    'redirect' => env('FACEBOOK_CLIENT_REDIRECT')
],

'google' => [
    'client_id' => env('GOOGLE_CLIENT_ID'),
    'client_secret' => env('GOOGLE_CLIENT_SECRET'),
    'redirect' => env('GOOGLE_CLIENT_REDIRECT')
]

```

Now you can serve the application and hit the route `/social-login` with `provider` (e.g. facebook, google) and `access_token` (Access token retrieved from social service providers)

License
-------

[](#license)

Licensed under the MIT License

Author
------

[](#author)

Pimple Suhsant ()

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~131 days

Total

3

Last Release

2621d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e46083694f5f78d58896768c699b7f42f433680493206e5bb9f9a59000967955?d=identicon)[pimplesushant](/maintainers/pimplesushant)

---

Top Contributors

[![pimplesushant-perennial](https://avatars.githubusercontent.com/u/41664235?v=4)](https://github.com/pimplesushant-perennial "pimplesushant-perennial (18 commits)")[![pimplesushant](https://avatars.githubusercontent.com/u/3313656?v=4)](https://github.com/pimplesushant "pimplesushant (3 commits)")

---

Tags

laravellaravel-apilaravel-api-access-tokenlaravel-facebook-signin-apilaravel-facebook-signup-apilaravel-google-places-apilaravel-google-signin-apilaravel-passportlaravel-passport-socialitelaravel-passport-socialite-apilaravel-social-signup-apilaravel-socialite

### Embed Badge

![Health badge](/badges/pimplesushant-laravelsocialiteapi/health.svg)

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

###  Alternatives

[socialiteproviders/manager

Easily add new or override built-in providers in Laravel Socialite.

42442.0M544](/packages/socialiteproviders-manager)[dutchcodingcompany/filament-socialite

Social login for Filament through Laravel Socialite

213914.9k9](/packages/dutchcodingcompany-filament-socialite)[andrewdwallo/filament-companies

A comprehensive Laravel authentication and authorization system designed for Filament, focusing on multi-tenant company management.

34450.0k2](/packages/andrewdwallo-filament-companies)[corbosman/laravel-passport-claims

Add claims to Laravel Passport JWT Tokens

88655.9k](/packages/corbosman-laravel-passport-claims)[jeremy379/laravel-openid-connect

OpenID Connect support to the PHP League's OAuth2 Server. Compatible with Laravel Passport.

55342.3k2](/packages/jeremy379-laravel-openid-connect)[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)
