PHP code example of worksome / socialite

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

    

worksome / socialite example snippets


'worksome' => [
    'client_id' => env('WORKSOME_CLIENT_ID'),
    'client_secret' => env('WORKSOME_CLIENT_SECRET'),
    'redirect' => env('WORKSOME_REDIRECT_URI'),

    // Optional
    'auth_uri' => env('WORKSOME_AUTH_URI', 'https://auth.worksome.com'),
    'auth_redirect_uri' => env('WORKSOME_AUTH_REDIRECT_URI', 'https://auth.worksome.test'),
],

protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        \Worksome\Socialite\WorksomeExtendSocialite::class,
    ],
];

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