kissdigital-com / apple-sign-in-client-secret-generator
PHP package for generating 'client secret' for Sign In with Apple
Installs: 24 021
Dependents: 1
Suggesters: 0
Security: 0
Stars: 21
Watchers: 3
Forks: 9
Open Issues: 2
Type:package
Requires
- php: ^7.2
- web-token/jwt-framework: ^2.1
This package is auto-updated.
Last update: 2024-03-26 00:33:00 UTC
README
Description
This package provides class that generates token derived from your private key using ES256 JWT algorithm. For more info check useful links
Requirements
PHP 7.2+
Installation
Install the composer package:
composer require kissdigital-com/apple-sign-in-client-secret-generator
Example Usage
<?php 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();
Useful links
- https://developer.apple.com/sign-in-with-apple/get-started
- https://developer.okta.com/blog/2019/06/04/what-the-heck-is-sign-in-with-apple
About KISS digital
KISS digital is a digital agency located in Kraków, Poland. We provide creative, strategic and technical development of websites and mobile applications.