PHPackages                             animus-coop/apple-laravel-authorization-code - 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. animus-coop/apple-laravel-authorization-code

ActiveLibrary

animus-coop/apple-laravel-authorization-code
============================================

Get User Data with the result code of a apple sign in button

33246PHP

Since Nov 18Pushed 5y ago2 watchersCompare

[ Source](https://github.com/animus-coop/apple-laravel-authorization-code)[ Packagist](https://packagist.org/packages/animus-coop/apple-laravel-authorization-code)[ RSS](/packages/animus-coop-apple-laravel-authorization-code/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Validate Apple User Code with Laravel
=====================================

[](#validate-apple-user-code-with-laravel)

[![N|Solid](https://camo.githubusercontent.com/345210e6bf78ebd5e12ff11b2f3b1f8085474efa6d744f467d50be293e3988bd/68747470733a2f2f6d656469612e6c6963646e2e636f6d2f646d732f696d6167652f433444304241514576635779474d53395934672f636f6d70616e792d6c6f676f5f3230305f3230302f303f653d3231353930323434303026763d6265746126743d766c384d51594e326265616b646d423047573738383645555354777a56306f414b446d3456354d67506855)](https://camo.githubusercontent.com/345210e6bf78ebd5e12ff11b2f3b1f8085474efa6d744f467d50be293e3988bd/68747470733a2f2f6d656469612e6c6963646e2e636f6d2f646d732f696d6167652f433444304241514576635779474d53395934672f636f6d70616e792d6c6f676f5f3230305f3230302f303f653d3231353930323434303026763d6265746126743d766c384d51594e326265616b646d423047573738383645555354777a56306f414b446d3456354d67506855)

Getting Start!
==============

[](#getting-start)

```
composer require apple-laravel-authorization-code
```

Add Service Provider in config/app.php

```
'providers' => [
   ...
    AnimusCoop\AppleTokenAuth\AppleTokenAuthServiceProvider::class,
]

```

Use
===

[](#use)

Controller.

```
use AnimusCoop\AppleTokenAuth\Classes\AppleAuth;

```

```
$data = [
   "client_id" => "",
   "team_id"   => "",
   "key_id"    => "",
   "key"       => storage_path('AuthKey.p8'), //path where is your p8 key example if your key is in storage
   "code"      => "" //code sended by your front end guy
];

$appleAuth = new AppleAuth($data);

// if you need only the jwt signed with your p8 key file

$jwt = $appleAuth->getJwtSigned();

// Refresh Token and get user Data
$user = $appleAuth->getUserData();

```

Response getUserData()

```
[
  "authorization" => {
    "access_token": ""
    "token_type": "Bearer"
    "expires_in": 3600
    "refresh_token": ""
    "id_token": ""
  }
  "user" => {
    "iss": "https://appleid.apple.com"
    "aud": "your client id"
    "exp": 1605393470
    "iat": 1605307070
    "sub": ""
    "at_hash": ""
    "email": "isaias@animus.com.ar"
    "email_verified": "true"
    "auth_time": 1605307067
    "nonce_supported": true
  }
]

```

###  Health Score

22

↑

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/37e5e3128f5691a93a51774cafd46da7d4b84f9d1e841df65b0be638c0c932c7?d=identicon)[Animus Coop](/maintainers/Animus%20Coop)

---

Top Contributors

[![isa95Ar](https://avatars.githubusercontent.com/u/38536964?v=4)](https://github.com/isa95Ar "isa95Ar (19 commits)")

### Embed Badge

![Health badge](/badges/animus-coop-apple-laravel-authorization-code/health.svg)

```
[![Health](https://phpackages.com/badges/animus-coop-apple-laravel-authorization-code/health.svg)](https://phpackages.com/packages/animus-coop-apple-laravel-authorization-code)
```

PHPackages © 2026

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