Download the PHP package acacha/laravel-social without Composer
On this page you can find all versions of the php package acacha/laravel-social. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download acacha/laravel-social
More information about acacha/laravel-social
Files in acacha/laravel-social
Package laravel-social
Short Description Social Login/Register implementation using Laravel Socialite and AdminLTE Laravel package
License MIT
Homepage https://github.com/acacha/laravel-social
Informations about the package laravel-social
laravel-social
A Laravel 5 package for OAuth Social Login/Register implementation using Laravel socialite and (optionally) AdminLTE Laravel package.
Installation
Using adminlte laravel (recommended option)
Install AdminLTE Laravel package:
Then optionally you can boostrap you project in your favourite browser using:
Using composer
Use Composer, in you Laravel project:
Add service provider to providers array in your config/app.php file:
And run command:
To configure social network providers.
Finally modify your app views to add links to Social Login using link:
Examples:
I recommend you to use AdminLTE Laravel Package for a full working Auth scaffolding with Adminlte bootstrap template. See previous section.
You can also use Laravel default Auth scaffolding running command:
And manually add button/links to social Login/Register.
Usage
You can configure Social Providers with command:
This wizard will adapt your .env
and config/services.php
files to add your social networks OAuth data.
At this moment command 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).
Requirements
Please install AdminLTE Laravel:
This package also requires (all installed using composer):
See also related projects:
Social networks
Laravel social package support by default the following social networks:
- Github
Laravel social use Illuminate\Support\Manager so you can create your own driver and register the driver in LaravelSocialServiceProvider.
Please, if you create a new driver feel free to create a Pull Request.
You can enable/disable social providers easily. See following section.
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.
Also you have to change static variable $socialNetworks
in file ConfigureSocialServicesManager to add your extra social providers.
Github
The cli wizard will propose you to go to page:
https://github.com/settings/applications/new
to register new OAuth Application.
The cli wizard will propose you to go to page:
https://developers.facebook.com/apps/
to register new OAuth Application
The cli wizard will propose you to go to page:
https://console.developers.google.com
to register new OAuth Application. Please remember to active Google+ API!.
More info at https://developers.google.com/identity/sign-in/web/devconsole-project .
The cli wizard will propose you to go to page:
https://apps.twitter.com/app/new
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.
The cli wizard will propose you to go to page:
https://www.linkedin.com/secure/developer
to register new OAuth Application.
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
In your Laravel project execute:
Contributing
Please see CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Sergi Tur Badenas
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-social with dependencies
acacha/filesystem Version ^0.1.1
doctrine/dbal Version ^2.5
laravel/framework Version ^5.4
laravel/socialite Version ^3.0