PHP code example of socialiteproviders / eveonline

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

    

socialiteproviders / eveonline example snippets


'eveonline' => [
  'client_id' => env('EVEONLINE_CLIENT_ID'),
  'client_secret' => env('EVEONLINE_CLIENT_SECRET'),
  'redirect' => env('EVEONLINE_REDIRECT_URI')
],

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

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

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

return Socialite::driver('eveonline')->scopes(['esi-clones.read_clones.v1','esi-characters.read_blueprints.v1'])->redirect();