2017 © Pedro Peláez
 

laravel-package laravel-social-connections

package adds social connections management, users can connect multiple social networks to their laravel account

image

maynagashev/laravel-social-connections

package adds social connections management, users can connect multiple social networks to their laravel account

  • Friday, November 3, 2017
  • by Maynagashev
  • Repository
  • 2 Watchers
  • 2 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 50 % Grown

The README.md

laravel-social-connections

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

Status: dev alpha., (*2)

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:, (*3)

Maynagashev\SocialConnections\SocialConnectionsServiceProvider::class,, (*4)

Publish package assets by running artisan command:, (*5)

php artisan vendor:publish, (*6)

Publish separately:, (*7)

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., (*8)

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., (*9)

Examples: https://gist.github.com/maynagashev/259fce6e5a845b09dcb0a70e828966f5#file-env, (*10)

2) config/services.php

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

Examples: https://gist.github.com/maynagashev/259fce6e5a845b09dcb0a70e828966f5#file-services-php, (*12)

Localization:

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

Screens from real world applications

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

screen1, (*14)

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

TODO:

  • localization files: ru, en.

The Versions

03/11 2017

dev-modified

dev-modified

package adds social connections management, users can connect multiple social networks to their laravel account

  Sources   Download

MIT

The Requires

 

by Avatar Maynagashev

05/03 2017

dev-master

9999999-dev

package adds social connections management, users can connect multiple social networks to their laravel account

  Sources   Download

MIT

The Requires

 

by Avatar Maynagashev