2017 © Pedro Peláez
 

library sociopat

Laravel Package extending Laravel Socialite and 3rd party providers for managing social networks actions like login, publish a post, etc.

image

skvn/sociopat

Laravel Package extending Laravel Socialite and 3rd party providers for managing social networks actions like login, publish a post, etc.

  • Wednesday, June 22, 2016
  • by skvn
  • Repository
  • 2 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

UNDER development

1. Installation

composer require skvn/sociopat, (*1)

After the package is installed run, (*2)

php artisan vendor:publish --provider="Skvn\Sociopat\SociopatServiceProvider", (*3)

2. Service Provider

  • If Installed Socialite previously, remove Laravel\Socialite\SocialiteServiceProvider from your providers[] array in config\app.php if you have added it already.
  • Add Skvn\Sociopat\SociopatServiceProvider to your providers[] array in config\app.php.

For example:, (*4)

'providers' => [
    // a whole bunch of providers
    // remove 'Laravel\Socialite\SocialiteServiceProvider',
    Skvn\Sociopat\SociopatServiceProvider::class, // add
];
  • Note: If you would like to use the Socialite Facade, you need to install it.

3. Configuration

Add the credentials for the the providers you are going to use, (*5)

Facebook

VK

Mail.ru

Add to config/services.php:, (*6)

'mailru' => [
    'client_id' => env('MAILRU_ID'),
    'client_secret' => env('MAILRU_SECRET'),
    'redirect' => env('MAILRU_REDIRECT'),  
],

Append provider values to your .env file:, (*7)

// other values above
MAILRU_ID=your_app_id_for_the_service
MAILRU_SECRET=your_app_secret_for_the_service
MAILRU_REDIRECT=https://example.com/login

Odnoklassniki

Add to config/services.php:, (*8)

'odnoklassniki' => [
    'client_id' => env('ODNOKLASSNIKI_ID'),
    'client_secret' => env('ODNOKLASSNIKI_SECRET'),
    'redirect' => env('ODNOKLASSNIKI_REDIRECT'),  
],

Append provider values to your .env file: Note: Add both public and secret keys!, (*9)

// other values above
ODNOKLASSNIKI_ID=your_app_id_for_the_service
ODNOKLASSNIKI_PUBLIC=your_app_public_for_the_service
ODNOKLASSNIKI_SECRET=your_app_secret_for_the_service
ODNOKLASSNIKI_REDIRECT=https://example.com/login

Usage

Login

For login examples please refer to the Laravel Socialite documentation, (*10)

Also you an article in Russian is available., (*11)

The Versions

22/06 2016

dev-master

9999999-dev

Laravel Package extending Laravel Socialite and 3rd party providers for managing social networks actions like login, publish a post, etc.

  Sources   Download

MIT

The Requires

 

by Vitaly Nikolenko
by Sergey Kulyamin