2017 © Pedro Peláez
 

library laravel-social

Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package

image

acacha/laravel-social

Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package

  • Tuesday, March 13, 2018
  • by acacha
  • Repository
  • 1 Watchers
  • 35 Stars
  • 3,714 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 6 Forks
  • 6 Open issues
  • 19 Versions
  • 11 % Grown

The README.md

laravel-social

Latest Version on Packagist Total Downloads Monthly Downloads Daily Downloads Latest Stable Version ![Software License][ico-license] Build Status Quality Score StyleCI, (*1)

A Laravel 5 package for OAuth Social Login/Register implementation using Laravel socialite and (optionally) AdminLTE Laravel package., (*2)

Installation

Install AdminLTE Laravel package:, (*3)

composer global require "acacha/adminlte-laravel-installer"
laravel new awesome
cd awesome
adminlte-laravel install
adminlte-laravel social

Then optionally you can boostrap you project in your favourite browser using:, (*4)

llum boot

Using composer

Use Composer, in you Laravel project:, (*5)

``` bash $ composer require acacha/laravel-social, (*6)


Add service provider to providers array in your **config/app.php** file: ```php Acacha\LaravelSocial\Providers\LaravelSocialServiceProvider::class

And run command:, (*7)

php artisan make:social

To configure social network providers., (*8)

Finally modify your app views to add links to Social Login using link:, (*9)

http://yourappurl.com/auth/{socialnetwork}

Examples:, (*10)

http://yourappurl.com/auth/github
http://yourappurl.com/auth/facebook
http://yourappurl.com/auth/google
http://yourappurl.com/auth/twitter
http://yourappurl.com/auth/linkedin

I recommend you to use AdminLTE Laravel Package for a full working Auth scaffolding with Adminlte bootstrap template. See previous section., (*11)

You can also use Laravel default Auth scaffolding running command:, (*12)

php artisan make:auth

And manually add button/links to social Login/Register., (*13)

Usage

You can configure Social Providers with command:, (*14)

php artisan acacha:social
 Which social network you wish to configure? [Github]:
  [0] Github
  [1] Facebook
  [2] Google
  [3] Twitter
  [4] Linkedin
 > 0

  Configuring social network Github...
  Please register a new OAuth app for Github. Go to URL https://github.com/settings/applications/new
  Then ask the following questions:

   OAuth client id?:
   > 3a1fg6ac5437f9f4cebd

   OAuth client secret?:
   > 5919185e3fb7024e5b10cedce5cce408893224d         

   OAuth client redirect URL? [http://localhost:8080/auth/github/callback]:
   > 

  File /home/sergi/Code/socialAdminLTEtest/config/services.php updated.
  Github added to config/services.php file

   Do you wish to configure other social networks? (yes/no) [yes]: 

This wizard will adapt your .env and config/services.php files to add your social networks OAuth data., (*15)

At this moment command php artisan acacha:social will not check if you have already configured your social network so be carefull when executing this command in already configured projects (no errors will be thrown but you will have repeated data in your config files)., (*16)

Requirements

Please install AdminLTE Laravel:, (*17)

composer global require "acacha/adminlte-laravel-installer"

This package also requires (all installed using composer):, (*18)

See also related projects:, (*19)

Social networks

Laravel social package support by default the following social networks:, (*20)

  • Github
  • Facebook
  • Google
  • Twitter
  • Linkedin

Laravel social use Illuminate\Support\Manager so you can create your own driver and register the driver in LaravelSocialServiceProvider., (*21)

Please, if you create a new driver feel free to create a Pull Request., (*22)

You can enable/disable social providers easily. See following section., (*23)

Enable/disable social providers

At class LaravelSocialServiceProvider you can modify $enabled field to change enabled social providers. Also remember to changes your views to add/remove action/links to social auth., (*24)

Also you have to change static variable $socialNetworks in file ConfigureSocialServicesManager to add your extra social providers., (*25)

Github

The cli wizard will propose you to go to page:, (*26)

https://github.com/settings/applications/new, (*27)

to register new OAuth Application., (*28)

Facebook

The cli wizard will propose you to go to page:, (*29)

https://developers.facebook.com/apps/, (*30)

to register new OAuth Application, (*31)

Google

The cli wizard will propose you to go to page:, (*32)

https://console.developers.google.com, (*33)

to register new OAuth Application. Please remember to active Google+ API!., (*34)

More info at https://developers.google.com/identity/sign-in/web/devconsole-project ., (*35)

Twitter

The cli wizard will propose you to go to page:, (*36)

https://apps.twitter.com/app/new, (*37)

to register new OAuth Application. Retrieve your api keys at tab Keys and Access Tokens and remember to check Request email addresses from users checkbox active in Permissions tab., (*38)

Linkedin

The cli wizard will propose you to go to page:, (*39)

https://www.linkedin.com/secure/developer, (*40)

to register new OAuth Application., (*41)

Change log

Please see CHANGELOG for more information on what has changed recently., (*42)

Testing

In your Laravel project execute:, (*43)

bash $ phpunit tests/AcachaLaravelSocial.php, (*44)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*45)

Security

If you discover any security related issues, please email sergiturbadenas@gmail.com instead of using the issue tracker., (*46)

Credits

License

The MIT License (MIT). Please see License File for more information., (*47)

The Versions

13/03 2018

dev-master

9999999-dev https://github.com/acacha/laravel-social

Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

acacha laravel-social

13/03 2018

0.2

0.2.0.0 https://github.com/acacha/laravel-social

Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

acacha laravel-social

13/02 2018

0.1.13

0.1.13.0 https://github.com/acacha/laravel-social

Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

acacha laravel-social

13/02 2018

0.1.11

0.1.11.0 https://github.com/acacha/laravel-social

Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

acacha laravel-social

13/02 2018

0.1.12

0.1.12.0 https://github.com/acacha/laravel-social

Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

acacha laravel-social

13/02 2018

0.1.10

0.1.10.0 https://github.com/acacha/laravel-social

Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

acacha laravel-social

02/04 2017

0.1.9

0.1.9.0 https://github.com/acacha/laravel-social

Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

acacha laravel-social

02/04 2017

0.1.8

0.1.8.0 https://github.com/acacha/laravel-social

Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

acacha laravel-social

02/04 2017

dev-analysis-8A3vpP

dev-analysis-8A3vpP https://github.com/acacha/laravel-social

Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

acacha laravel-social

02/04 2017

0.1.6

0.1.6.0 https://github.com/acacha/laravel-social

Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

acacha laravel-social

02/04 2017

0.1.5

0.1.5.0 https://github.com/acacha/laravel-social

Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

acacha laravel-social

08/03 2017

0.1.4

0.1.4.0 https://github.com/acacha/laravel-social

Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

acacha laravel-social

08/03 2017

0.1.3

0.1.3.0 https://github.com/acacha/laravel-social

Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

acacha laravel-social

24/02 2017

dev-analysis-8jjGN2

dev-analysis-8jjGN2 https://github.com/acacha/laravel-social

Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

acacha laravel-social

22/02 2017

0.1.2

0.1.2.0 https://github.com/acacha/laravel-social

Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

acacha laravel-social

22/02 2017

0.1.1

0.1.1.0 https://github.com/acacha/laravel-social

Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

acacha laravel-social

22/02 2017

dev-analysis-XNmlOv

dev-analysis-XNmlOv https://github.com/acacha/laravel-social

Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

acacha laravel-social

22/02 2017

0.1.0

0.1.0.0 https://github.com/acacha/laravel-social

Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

acacha laravel-social

20/02 2017

dev-analysis-XNmQVg

dev-analysis-XNmQVg https://github.com/acacha/laravel-social

Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

acacha laravel-social