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(4y 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 yesterday

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 61% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity28

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

1504d 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

[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

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

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

589701.7k2](/packages/scheb-2fa)[scheb/2fa-trusted-device

Extends scheb/2fa-bundle with trusted devices support

366.0M40](/packages/scheb-2fa-trusted-device)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M674](/packages/shopware-core)[jeremy379/laravel-openid-connect

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

62473.7k10](/packages/jeremy379-laravel-openid-connect)[drenso/symfony-oidc-bundle

OpenID connect bundle for Symfony

97795.4k4](/packages/drenso-symfony-oidc-bundle)

PHPackages © 2026

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