PHP code example of chillrend / pnj-socialite-provider

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

    

chillrend / pnj-socialite-provider example snippets


'pnj' => [    
  'client_id' => env('CLIENT_ID'),  
  'client_secret' => env('CLIENT_SECRET'),  
  'redirect' => env('REDIRECT_URI') 
],

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

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