PHP code example of seoda / socialite-apple

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

    

seoda / socialite-apple example snippets


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

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