maynagashev / laravel-social-connections
package adds social connections management, users can connect multiple social networks to their laravel account
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 0
Open Issues: 0
Type:laravel-package
Requires
- php: ^7.0
- illuminate/support: ^5.2
- laravel/socialite: ^3.0
- socialiteproviders/vkontakte: ^3.0
This package is not auto-updated.
Last update: 2025-02-05 22:19:05 UTC
README
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')
###TODO:
- localization files: ru, en.