PHPackages                             shinhyungjune/social-login - 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. shinhyungjune/social-login

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

shinhyungjune/social-login
==========================

social login

2.0.0(1y ago)0685↓75%MITPHPPHP ^7.4|^8.0|^8.1

Since Sep 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ShinHyungJune/social-login)[ Packagist](https://packagist.org/packages/shinhyungjune/social-login)[ Docs](https://github.com/shinhyungjune/social-login)[ RSS](/packages/shinhyungjune-social-login/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (3)Used By (0)

Very short description of the package
=====================================

[](#very-short-description-of-the-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b59fb2c168e8565c5738597d2e8af83ae69918913592cf0a6d40f3547ef11a7d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7368696e6879756e676a756e652f736f6369616c2d6c6f67696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shinhyungjune/social-login)[![Total Downloads](https://camo.githubusercontent.com/a1b80397adba9a2769f45e639ad2b37614cbb71610cea5bc1115214b1cfdaf0a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7368696e6879756e676a756e652f736f6369616c2d6c6f67696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shinhyungjune/social-login)[![GitHub Actions](https://github.com/shinhyungjune/social-login/actions/workflows/main.yml/badge.svg)](https://github.com/shinhyungjune/social-login/actions/workflows/main.yml/badge.svg)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

Requirements
------------

[](#requirements)

- Inertia.js 설정 필요( 참고)
- 메일 설정 및 비밀번호 초기화 세팅 필요( 참고)
- 네이버, 카카오 등 각 사이트에서 페이지 등록 필요
- 기존 create\_users가 아닌 패키지에서 제공하는 create\_users migration 필요

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

[](#installation)

You can install the package via composer:

```
composer require shinhyungjune/social-login
php artisan vendor:publish
```

Usage
-----

[](#usage)

```
// Usage description here
```

@web.php

```
Route::get("/", function(){
    return \Inertia\Inertia::render("Home");
});
Route::get("/home", function(){
    return \Inertia\Inertia::render("Home");
});

Route::middleware("guest")->group(function(){
    Route::get("/openLoginPop/{social}", [\ShinHyungJune\SocialLogin\Http\UserController::class, "openSocialLoginPop"]);
    Route::get("/login", [\ShinHyungJune\SocialLogin\Http\UserController::class, "index"])->name("login");
    Route::get("/login/{social}", [\ShinHyungJune\SocialLogin\Http\UserController::class, "socialLogin"]);
    Route::post("/login", [\ShinHyungJune\SocialLogin\Http\UserController::class, "login"]);
    Route::resource("/users", \ShinHyungJune\SocialLogin\Http\UserController::class);
    Route::get("/passwordResets/{token}/edit", [\ShinHyungJune\SocialLogin\Http\PasswordResetController::class, "edit"]);
    Route::resource("/passwordResets", \ShinHyungJune\SocialLogin\Http\PasswordResetController::class);
});

Route::middleware("auth")->group(function(){
    Route::get("/logout", [\ShinHyungJune\SocialLogin\Http\UserController::class, "logout"]);
});

Route::get("/mailable", function(){
    return (new \App\Mail\PasswordResetCreated(new \App\Models\User(), new \App\Models\PasswordReset()));
});
```

@.env(카카오는 secret key가 따로 없어서 입력 안해도됨)

```
KAKAO_CLIENT_ID=
KAKAO_CLIENT_SECRET=
KAKAO_REDIRECT_URI={your_url}/login/kakao

NAVER_CLIENT_ID=
NAVER_CLIENT_SECRET=
NAVER_REDIRECT_URI={your_url}/login/naver

GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URI={your_url}/login/google

FACEBOOK_CLIENT_ID=
FACEBOOK_CLIENT_SECRET=
FACEBOOK_REDIRECT_URI={your_url}/login/facebook
```

@EventServiceProvider

```
protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        'SocialiteProviders\\Naver\\NaverExtendSocialite@handle',
        'SocialiteProviders\\Kakao\\KakaoExtendSocialite@handle',
        'SocialiteProviders\\Facebook\\FacebookExtendSocialite@handle',
        'SocialiteProviders\\Google\\GoogleExtendSocialite@handle',
    ],
];
```

@services.php

```
'naver' => [
  'client_id' => env('NAVER_CLIENT_ID'),
  'client_secret' => env('NAVER_CLIENT_SECRET'),
  'redirect' => env('NAVER_REDIRECT_URI')
],

'kakao' => [
  'client_id' => env('KAKAO_CLIENT_ID'),
  'client_secret' => env('KAKAO_CLIENT_SECRET'),
  'redirect' => env('KAKAO_REDIRECT_URI')
],

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

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

@User.php

```
protected $fillable = [
        ...
        "social_id",
        "social_platform"
    ];
```

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

- [HyungJune Shin](https://github.com/shinhyungjune)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance46

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

2

Last Release

413d ago

Major Versions

1.0.0 → 2.0.02025-03-26

PHP version history (2 changes)1.0.0PHP ^7.4|^8.0

2.0.0PHP ^7.4|^8.0|^8.1

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

Social Loginshinhyungjune

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shinhyungjune-social-login/health.svg)

```
[![Health](https://phpackages.com/badges/shinhyungjune-social-login/health.svg)](https://phpackages.com/packages/shinhyungjune-social-login)
```

###  Alternatives

[socialiteproviders/manager

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

42442.0M544](/packages/socialiteproviders-manager)[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)[schedula/laravel-passport-socialite

The missing laravel passport feature for social authentication

4922.6k](/packages/schedula-laravel-passport-socialite)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)[dukt/social

Let your visitors log into Craft with web services like Facebook, Google, Twitter…

1141.0k5](/packages/dukt-social)[hardywen/social-login

Use QQ or Sina Weibo login

111.9k](/packages/hardywen-social-login)

PHPackages © 2026

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