PHPackages                             killov/apple-sign-in - 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. killov/apple-sign-in

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

killov/apple-sign-in
====================

Apple ID - web sign in

1.0.3(4y ago)237.1k↓24.5%MITPHPPHP &gt;= 7.2

Since Mar 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/killov/sign-in-with-apple-php)[ Packagist](https://packagist.org/packages/killov/apple-sign-in)[ Docs](https://github.com/killov/sign-in-with-apple-php)[ RSS](/packages/killov-apple-sign-in/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

sign-in-with-apple-php
======================

[](#sign-in-with-apple-php)

Library for web sign in over Apple ID.

Installation
------------

[](#installation)

For install please use composer.

`composer require killov/apple-sign-in`

Basic usage
-----------

[](#basic-usage)

Common code

```
$signIn = AppleSignInBuilder::create()
    ->setClientId("client")
    ->setTeamId("BDT54D54G5")
    ->setKeyPath("DG755G24FK", __DIR__ . "\keys\key.p8")
    ->setRedirectUrl($publicPath . "sign/apple-return")
    ->build();
```

Generate link for link button

```
$state = "random_code";
$_SESSION["state"] = $state; // store to session for for distraction CSRF
$link = $signIn->createAuthUrl($state); // https://appleid.apple.com/auth/authorize?response_type=code...
```

Prepare a return endpoint (redirectUrl)

```
$state = $_POST["state"];
// validate state from session
if ($_SESSION["state"] !== $state) {
    return;
}
$code = $_POST["code"];

// fetch JWT token
$jwt = $signIn->fetchAccessTokenWithAuthCode($code)->getIdTokenString()
```

Decode JWT token or use [Sign-in with Apple SDK](https://github.com/AzimoLabs/apple-sign-in-php-sdk).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

1520d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/19a933e0a653e3256572802c383e423f665eecf49065ab840a1568de05054d35?d=identicon)[killov](/maintainers/killov)

---

Top Contributors

[![killov](https://avatars.githubusercontent.com/u/38734989?v=4)](https://github.com/killov "killov (7 commits)")

### Embed Badge

![Health badge](/badges/killov-apple-sign-in/health.svg)

```
[![Health](https://phpackages.com/badges/killov-apple-sign-in/health.svg)](https://phpackages.com/packages/killov-apple-sign-in)
```

###  Alternatives

[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)[rahul900day/laravel-captcha

Different types of Captcha implementation for Laravel Application.

10715.9k](/packages/rahul900day-laravel-captcha)[simplesamlphp/simplesamlphp-module-oidc

A SimpleSAMLphp module adding support for the OpenID Connect protocol

5016.9k1](/packages/simplesamlphp-simplesamlphp-module-oidc)[kinde-oss/kinde-auth-php

Kinde PHP SDK for authentication

2369.5k3](/packages/kinde-oss-kinde-auth-php)[descope/descope-php

Descope SDK for PHP

3814.0k](/packages/descope-descope-php)[njoguamos/laravel-turnstile

A laravel wrapper for https://developers.cloudflare.com/turnstile/

2315.9k2](/packages/njoguamos-laravel-turnstile)

PHPackages © 2026

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