taobig / apple-id-login
verify the signature in the id_token
Installs: 41 624
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/taobig/apple-id-login
Requires
- php: ^7.1 || ^8.0
- ext-json: *
- codercat/jwk-to-pem: ^1.0
- firebase/php-jwt: ^5.1 || ^6.0
- guzzlehttp/guzzle: ^6.3 || ^7.0
Requires (Dev)
- php-coveralls/php-coveralls: ^2.2
- phpunit/phpunit: ^6.1 || ^9.0
This package is auto-updated.
Last update: 2025-12-10 15:47:22 UTC
README
A tool set for PHP projects
INSTALLATION
Install via Composer
>= PHP 7.1
composer require taobig/apple-id-login
Usage
/** @var taobig\apple\model\Token $obj */
$obj = IdentityTokenChecker::checkAppleIdentityToken($token);
$obj->email;
{
"iss": "https://appleid.apple.com",
"aud": "com.xxxxx.ios",
"exp": 1583465255,
"iat": 1583464655,
"sub": "001271.2d8d01e20a41430aa46cc6a4ed5b6dfb.0317",
"c_hash": "iyWz98oBS5_uNWljBEevdQ",
"email": "8qgax65eti@privaterelay.appleid.com",
"email_verified": "true",
"is_private_email": "true",
"auth_time": 1583464655,
"nonce_supported": true
}