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

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

lightmagic/laravel-socialite
============================

Social OAuth authentication for Laravel 5.

1.0.3(9y ago)023MITPHP

Since Dec 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/BrettCao/laravel-socialite)[ Packagist](https://packagist.org/packages/lightmagic/laravel-socialite)[ RSS](/packages/lightmagic-laravel-socialite/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (5)Used By (0)

Laravel-socialite
=================

[](#laravel-socialite)

Installation
============

[](#installation)

```
$ composer require "overtrue/laravel-socialite:~1.0"

```

> if you have been installed the `overtrue/socialite` package, please remove it from `composer.json` before this command.

Configuration
=============

[](#configuration)

1. After installing the Socialite library, register the `Overtrue\LaravelSocialite\ServiceProvider` in your config/app.php configuration file:

```
'providers' => [
    // Other service providers...
    Overtrue\LaravelSocialite\ServiceProvider::class,
],
```

2. Add the follow line to the `aliases` section of `config/app.php`:

```
'Socialite' => Overtrue\LaravelSocialite\Socialite::class,
```

3. You will also need to add credentials for the OAuth services your application utilizes. These credentials should be placed in your `config/socialite.php` or `config/services.php` configuration file, and should use the key facebook, twitter, linkedin, google, github or bitbucket, depending on the providers your application requires. For example:

```
