PHPackages                             ecoiris/php-signin-apple - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. ecoiris/php-signin-apple

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

ecoiris/php-signin-apple
========================

sign in with apple

v1.1.0(4y ago)14.3k↑29.4%MITPHP

Since Jul 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/EcoIris/php-signin-apple)[ Packagist](https://packagist.org/packages/ecoiris/php-signin-apple)[ RSS](/packages/ecoiris-php-signin-apple/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

苹果账号登录
======

[](#苹果账号登录)

安装
--

[](#安装)

```
composer require ecoiris/php-signin-apple
```

增加test.php示例文件
--------------

[](#增加testphp示例文件)

Laravel中使用
----------

[](#laravel中使用)

```
use AppleSign\ASDecoder;
use Illuminate\Http\Request;

public function appLogin(Request $request)
{
    // 客户端集成苹果授权，授权后可以获取到以下信息
    $userId = $request->input('userId');
    $identityToken = $request->input('identityToken');
    $email = $request->input('email');
    $fullName = $request->input('fullName');

    $appleSignInPayload = ASDecoder::getAppleSignInPayload($identityToken);
    $isValid = $appleSignInPayload->verifyUser($userId);
    if ($isValid) {// 验证通过
        print_r('验证通过后的逻辑');
        return;
    }
    print_r('验证失败后的逻辑');
    return;
}
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

1816d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29763335?v=4)[Eco](/maintainers/Eco)[@eco](https://github.com/eco)

---

Top Contributors

[![EcoIris](https://avatars.githubusercontent.com/u/38517426?v=4)](https://github.com/EcoIris "EcoIris (17 commits)")

---

Tags

jwtapple

### Embed Badge

![Health badge](/badges/ecoiris-php-signin-apple/health.svg)

```
[![Health](https://phpackages.com/badges/ecoiris-php-signin-apple/health.svg)](https://phpackages.com/packages/ecoiris-php-signin-apple)
```

###  Alternatives

[firebase/php-jwt

A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.

10.0k478.8M2.7k](/packages/firebase-php-jwt)[lcobucci/jwt

A simple library to work with JSON Web Token and JSON Web Signature

7.6k338.7M1.1k](/packages/lcobucci-jwt)[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.7k51.8M372](/packages/tymon-jwt-auth)[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k103.2M104](/packages/namshi-jose)[web-token/jwt-framework

JSON Object Signing and Encryption library for PHP and Symfony Bundle.

95220.7M103](/packages/web-token-jwt-framework)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

84611.1M63](/packages/php-open-source-saver-jwt-auth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
