PHP code example of chefhasteeth / socialite-patreon

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

    

chefhasteeth / socialite-patreon example snippets


'patreon' => [    
  'client_id' => env('PATREON_CLIENT_ID'),  
  'client_secret' => env('PATREON_CLIENT_SECRET'),  
  'redirect' => env('PATREON_REDIRECT_URI') 
],

protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        \Chefhasteeth\Socialite\Patreon\PatreonExtendSocialite::class . '@handle',
    ],
];

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