PHP code example of ai-gate / apple-sign-in-client-secret-generator
1. Go to this page and download the library: Download ai-gate/apple-sign-in-client-secret-generator 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/ */
ai-gate / apple-sign-in-client-secret-generator example snippets
use Kissdigitalcom\AppleSignIn\ClientSecret;
$clientId = 'com.kissdigital.TESTAPP';
$teamId = 'FOO123BAR456';
$keyId = '654RAB321OOF';
$certPath = __DIR__ . '/certificate.p8';
$clientSecret = new ClientSecret($clientId, $teamId, $keyId, $certPath);
echo $clientSecret->generate();