PHP code example of skynetru / socialite-clio-laravel7

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

    

skynetru / socialite-clio-laravel7 example snippets


/**
 * The event listener mappings for the application.
 *
 * @var array
*/
protected $listen = [

    // ...

    'SocialiteProviders\\Manager\\SocialiteWasCalled' => [
        'SocialiteProviders\\Clio\\ClioExtendSocialite@handle',
    ],

    // ...

];

return [

    // ...

    'clio' => [
        'base_url' => env('CLIO_BASE_URL', 'https://app.clio.com'),
        'client_id' => env('CLIO_APP_KEY'),
        'client_secret' => env('CLIO_APP_SECRET'),
        'redirect' => env('CLIO_APP_REDIRECT'),
    ],

    // ...

];

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