kylemass/sociallogin

Simple plugin to allow for login and registration from various social platforms
16 1
Install
composer require kylemass/sociallogin
Latest Version:1.0.0
License:MIT
Last Updated:May 17, 2016
Links: GitHub  ·  Packagist
Maintainer: KyleMassacre

Laravel Social Login

This is a basic plugin to handle your social login and registration requests.

To install, download through composer

$ composer require kylemass/sociallogin

Or by adding:

{
	"require": {
		"kylemass/sociallogin": "~1.0"
	}
}

Once you have added the package, add the Service Provider to your list of service providers:

'providers' => [
    ...
    KyleMass\SocialLogin\SocialLoginServiceProvider::class,
],

Next you have to publish the package:

$ php artisan vendor:publish --provider="KyleMass\SocialLogin\SocialLoginServiceProvider"

The package comes with a migration file, so last but not least run:

$ php artisan migrate

That is it, your routes will automatically be generated which look like:

Route::get('auth/social/{provider}', 'KyleMass\SocialLogin\SocialLoginController@redirectToProvider');
Route::get('auth/{provider}/callback', 'KyleMass\SocialLogin\SocialLoginController@handleProviderCallback');

All you will have to do is create the links the social providers you wish to use for example:

<a href="{{ url('auth/social/github') }}">Login with Github</a>

And for your callback URL will be http://www.yourdomain.tld/auth/github/callback

This package requires laravel/socailite so you can find the documentation on how to set that up at the Laravel website.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

631,580,251 9,707
laravel/framework

The Laravel Framework.

580,311,802 34,925
laravel/tinker

Powerful REPL for the Laravel framework.

489,754,436 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

404,034,618 608
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

387,976,821 4,658