Skip to content

Laravel package, adds social network connections management, users can connect multiple social networks to a laravel account.

Notifications You must be signed in to change notification settings

maynagashev/laravel-social-connections

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

laravel-social-connections

Laravel package, adds social connections management, users can connect multiple social networks to a laravel account.

Status: dev alpha.

Capabilities

  • extended handler for oauth providers (with asking for email, if email address not returned from provider)
  • resource controller with views for showing current connections in admin
  • view component for displaying social network buttons in login/signup form

###Installation

Add new record to the providers list in config/app.php:

Maynagashev\SocialConnections\SocialConnectionsServiceProvider::class,

Publish package assets by running artisan command:

php artisan vendor:publish

Publish separately:

php artisan vendor:publish --tag=config
php artisan vendor:publish --tag=models
php artisan vendor:publish --tag=views

Routes, controllers, migrations, translations loaded from the package directory.

Setup socialite providers credentials:

1) .env

Because provider's credentials is environment specific and shouldn't be exposed in public, all credentials stored in .env file.

Examples: https://gist.github.com/maynagashev/259fce6e5a845b09dcb0a70e828966f5#file-env

2) config/services.php

In config/services.php we just getting values from .env file with helper function env('CONST_NAME').

Examples: https://gist.github.com/maynagashev/259fce6e5a845b09dcb0a70e828966f5#file-services-php

Localization:

Current locale selected by application global configuration variable locale, set in config/app.php.

Screens from real world applications

  • Social connections list in user's profile, with $app->setLocale('en')

screen1

  • List of all supported providers and primary ones - set in config.
    screen2

###TODO:

  • localization files: ru, en.

About

Laravel package, adds social network connections management, users can connect multiple social networks to a laravel account.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published