PHPackages                             ktakayama/swa - 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. ktakayama/swa

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

ktakayama/swa
=============

Sign in with Apple

0.6.2(3y ago)58.2k2[1 issues](https://github.com/ktakayama/swa/issues)MITPHP

Since Dec 17Pushed 2y ago2 watchersCompare

[ Source](https://github.com/ktakayama/swa)[ Packagist](https://packagist.org/packages/ktakayama/swa)[ RSS](/packages/ktakayama-swa/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

Sign in with Apple
==================

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

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

[](#installation)

`composer require ktakayama/swa`

Usage
-----

[](#usage)

```
$code = ...
$redirect_uri = ...

$key = setIss(YOUR_TEAM_ID)
        ->setIat(time())
        ->setExp(time()+3600)
        ->setSub(YOUR_CLIENT_ID);

$authorization = (new \SWA\Reuest($token))->getAuthorizationCode($code, $redirect_uri);
$refresh_token = $authorization->getRefreshToken();
$email = $authorization->getIdToken()->getPayload()->getEmail();

$response = (new \SWA\Reuest($token))->getAccessToken($refresh_token);
$access_token = $response->getAccessToken();

echo $email . "\n";
echo $access_token . "\n";
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 65% 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 ~186 days

Recently: every ~232 days

Total

6

Last Release

1459d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/490ccbc398aa587e5d16e29a2012aa14aae9bc87a5c749fc458d70fb4df71c35?d=identicon)[ktakayama](/maintainers/ktakayama)

---

Top Contributors

[![ktakayama](https://avatars.githubusercontent.com/u/42468?v=4)](https://github.com/ktakayama "ktakayama (13 commits)")[![hirasawayuki](https://avatars.githubusercontent.com/u/48427044?v=4)](https://github.com/hirasawayuki "hirasawayuki (2 commits)")[![naoki85](https://avatars.githubusercontent.com/u/14346370?v=4)](https://github.com/naoki85 "naoki85 (2 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/ktakayama-swa/health.svg)

```
[![Health](https://phpackages.com/badges/ktakayama-swa/health.svg)](https://phpackages.com/packages/ktakayama-swa)
```

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.7k51.8M371](/packages/tymon-jwt-auth)[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.7k147.0M288](/packages/league-oauth2-server)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

84611.1M63](/packages/php-open-source-saver-jwt-auth)[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

585684.2k1](/packages/scheb-2fa)[jeremy379/laravel-openid-connect

OpenID Connect support to the PHP League's OAuth2 Server. Compatible with Laravel Passport.

59437.0k9](/packages/jeremy379-laravel-openid-connect)[scheb/2fa-trusted-device

Extends scheb/2fa-bundle with trusted devices support

365.8M34](/packages/scheb-2fa-trusted-device)

PHPackages © 2026

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