PHP code example of noopstudios / autenticacaogov

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

    

noopstudios / autenticacaogov example snippets


// Redirect to Sign in with Apple in controller.
return Socialite::driver('autenticacaogov')->redirect();

// Handle callback, fetch user information from `code` in controller.
$user = Socialite::driver('autenticacaogov')->user();