加入CODE CHINA

· 不限速    · 不限空间    · 不限人数    · 私仓免费

免费加入
README.md

php-apple-signin

PHP library to manage Sign In with Apple identifier tokens, and validate them server side passed through by the iOS client.

Installation

Use composer to manage your dependencies and download php-apple-signin:

composer require griffinledingham/php-apple-signin

Example

<?php
use AppleSignIn\ASDecoder;

$clientUser = "example_client_user";
$identityToken = "example_encoded_jwt";

$appleSignInPayload = ASDecoder::getAppleSignInPayload($identityToken);

/**
 * Obtain the Sign In with Apple email and user creds.
 */
$email = $appleSignInPayload->getEmail();
$user = $appleSignInPayload->getUser();

/**
 * Determine whether the client-provided user is valid.
 */
$isValid = $appleSignInPayload->verifyUser($clientUser);

?>

项目简介

🚀 Github 镜像仓库 🚀

源项目地址

https://github.com/griffinledingham/php-apple-signin

发行版本 3

April 2020 Update

全部发行版

贡献者 5

K Koen Punt @Koen Punt
G Griffin Ledingham @Griffin Ledingham
M Madison @Madison
D Davide555 @Davide555
D David Kostanjevec @David Kostanjevec

开发语言

  • PHP 100.0 %