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)241.9k↓55.8%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 2d 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

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

1566d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38734989?v=4)[Zdeněk Mazurák](/maintainers/killov)[@killov](https://github.com/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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

123256.9k1](/packages/ellaisys-aws-cognito)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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