PHP code example of convoflo / socialite-provider

1. Go to this page and download the library: Download convoflo/socialite-provider 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/ */

    

convoflo / socialite-provider example snippets


'convoflo' => [
    'client_id' => env('CONVOFLO_CLIENT_ID'),
    'client_secret' => env('CONVOFLO_CLIENT_SECRET'),
    'redirect' => env('CONVOFLO_REDIRECT_URL'),
],

Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
    $event->extendSocialite('convoflo', \Convoflo\SocialiteProvider\Provider::class);
});

protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        \Convoflo\SocialiteProvider\ConvofloExtendSocialite::class.'@handle',
    ],
];

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