cretueusebiu / gamecenter-identity-verifier
Installs: 30 071
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 0
Open Issues: 1
Type:package
This package is auto-updated.
Last update: 2024-12-14 05:09:32 UTC
README
Verify the identity of Apple GameCenter local player in PHP.
Installation
composer require cretueusebiu/gamecenter-identity-verifier
Usage
use Eusebiu\GameCenterIdentity\Verifier; $playerId = 'G:1111111111'; $timestamp = 1469626352131; $bundleId = 'com.myapp.dev'; $publicKeyURL = 'https://static.gc.apple.com/public-key/gc-prod-2.cer'; $salt = '...'; $signature = '...'; $verifier = new Verifier($signature, $publicKeyURL); var_dump($verifier->verify($playerId, $bundleId, $timestamp, $salt));