Download the PHP package efureev/social without Composer
On this page you can find all versions of the php package efureev/social. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package social
Information
Wrapper on Laravel Socialite
Install
composer require efureev/social- Run migrations:
./artisan migrate. - If need - make published config:
./artisan vendor:publish --tag=social.
Basic usage
- Published resources:
php artisan vendor:publish --tag=social -
Fill config file
social.phpintoconfigdir with your social drivers: - add into your app
.envfile variables:VK_CLIENT_ID=...andVK_CLIENT_SECRET=...with VK credentials. See inhttps://vk.com/apps?act=manage - run migration:
php artisan migration - add into view (ex:
resources/views/auth/login.blade.php):- for list:
@include('social::list', ['socials' => app('social')->getProviders()]) - for icons:
@include('social::icons', ['socials' => app('social')->getProviders()])
- for list:
- Done!
For customizing perform - see config and docs.
Config
Config Props
redirectOnAuth[string] redirect on address after user auth.onSuccess[\Closure|array] action on auth success. Params: \Fureev\Socialite\Two\AbstractProviderdrivers[array] Driver list (driverName => driverConfig)userClass[string] Auth User Class (userClass => 'App/Models/User')
Driver Config
clientId[string] RequireclientSecret[string] Requireenabled[bool] Default, true.label[string] Title for view. Default,driverNameprovider[string] Class of Provider (\Fureev\Socialite\Two\AbstractProvider)url_token[string] Token URL for the providerurl_auth[string] Authentication URL for the provideruserInfoUrl[string] Url to get the raw user dataonSuccess[\Closure|array] action on auth success. Overwrite commononSuccessscopeSeparator[string]scopes[array]
Example
File config/social.php
File \App\Services\SocialAccountService.php
Auto add social providers in your view:
All versions of social with dependencies
PHP Build Version
Package Version
Requires
efureev/socialite Version
^1.1
efureev/support Version ^2.3
illuminate/routing Version ^5.8|^6.2|^7.0
illuminate/database Version ^5.8|^6.2|^7.0
efureev/support Version ^2.3
illuminate/routing Version ^5.8|^6.2|^7.0
illuminate/database Version ^5.8|^6.2|^7.0
The package efureev/social contains the following files
Loading the files please wait ...