PHP code example of boyaa / sign_in_with_apple_code

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

    

boyaa / sign_in_with_apple_code example snippets



	ppleSignIn\AppleAuth;

	# Save your private key from Apple in a file called `key.txt`
	$key = '' ;

	# Your 10-character Team ID
	$teamId = '';

	# Your Services ID, e.g. com.aaronparecki.services
	$clientId = '';

	# Find the 10-char Key ID value from the portal
	$keyId = '';

	$clientSecret = AppleAuth::createClientSecret($teamId, $clientId, $key, $keyId);
	var_dump($clientSecret);