PHP code example of openauthdev / socialiteopenauthprovider

1. Go to this page and download the library: Download openauthdev/socialiteopenauthprovider library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

openauthdev / socialiteopenauthprovider example snippets


\SocialiteProviders\Manager\SocialiteWasCalled::class => [
    'SocialiteProviders\\OpenAuth\\OpenAuthExtendSocialite@handle',
]

'openauth' => [
    'client_id' => env('OPENAUTH_CLIENT_ID'),
    'client_secret' => env('OPENAUTH_CLIENT_SECRET'),
    'redirect' => env('OPENAUTH_REDIRECT_URI')
]

return Socialite::driver('openauth')->redirect();