Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cretueusebiu/gamecenter-identity-verifier
Verify the identity of Apple GameCenter local player in PHP
https://github.com/cretueusebiu/gamecenter-identity-verifier
Last synced: 16 days ago
JSON representation
Verify the identity of Apple GameCenter local player in PHP
- Host: GitHub
- URL: https://github.com/cretueusebiu/gamecenter-identity-verifier
- Owner: cretueusebiu
- License: mit
- Created: 2016-07-27T22:01:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-27T23:02:45.000Z (over 8 years ago)
- Last Synced: 2024-10-10T23:53:55.158Z (about 1 month ago)
- Language: PHP
- Homepage:
- Size: 1.95 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gamecenter-identity-verifier
Verify the identity of Apple GameCenter local player in PHP.
## Installation
`composer require cretueusebiu/gamecenter-identity-verifier`
## Usage
```php
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));
```