PHP code example of mrthito / ipatco

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

    

mrthito / ipatco example snippets


'ipatco' => [    
  'client_id' => env('IPATCO_CLIENT_ID'),  
  'client_secret' => env('IPATCO_CLIENT_SECRET'),  
  'redirect' => env('IPATCO_REDIRECT_URI') 
],

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

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

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