PHPackages                             arielmejiadev/json-api-auth - 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. arielmejiadev/json-api-auth

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

arielmejiadev/json-api-auth
===========================

It adds authentication scaffold for api authentication by tokens for packages like Passport or Sanctum.

1.1.0(3y ago)264.4k↓76.2%12[1 issues](https://github.com/ArielMejiaDev/json-api-auth/issues)[1 PRs](https://github.com/ArielMejiaDev/json-api-auth/pulls)MITPHPPHP ^7.4|^8.0

Since Jan 28Pushed 3y ago2 watchersCompare

[ Source](https://github.com/ArielMejiaDev/json-api-auth)[ Packagist](https://packagist.org/packages/arielmejiadev/json-api-auth)[ Docs](https://github.com/arielmejiadev/json-api-auth)[ RSS](/packages/arielmejiadev-json-api-auth/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (3)Versions (7)Used By (0)

[![](https://camo.githubusercontent.com/f91ffaa82509a44a0c2740405a35f9ff5186bb6fb064cc7ed5bc788ea19e998e/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4a534f4e253230415049253230415554482e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d417269656c4d656a69614465762532466a736f6e2d6170692d61757468267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d417574682b73636166666f6c642b666f722b4a534f4e2b41504973266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)](https://camo.githubusercontent.com/f91ffaa82509a44a0c2740405a35f9ff5186bb6fb064cc7ed5bc788ea19e998e/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4a534f4e253230415049253230415554482e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d417269656c4d656a69614465762532466a736f6e2d6170692d61757468267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d417574682b73636166666f6c642b666f722b4a534f4e2b41504973266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)

🔐 Authentication scaffold for Json Apis.
========================================

[](#-authentication-scaffold-for-json-apis)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7427937e86f37fcf87a24585dc981cb1bae6f0da5377656c6b59e5973368243c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617269656c6d656a69616465762f6a736f6e2d6170692d617574682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/arielmejiadev/json-api-auth)[![Total Downloads](https://camo.githubusercontent.com/6b9dfeab2d441c1605e5209ae7f6cfc19fbab49b53be7aa0c8f20309edbd516c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617269656c6d656a69616465762f6a736f6e2d6170692d617574682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/arielmejiadev/json-api-auth)

It adds all the scaffold to get register, login, logout, forgot password, password verify and verify email account features for Apis.

It plays well with both authentication official packages Laravel Passport or Sanctum.

To learn all about it, head over to [ the extensive documentation.](https://json-api-auth.netlify.app/)

👨‍💻 Installation
----------------

[](#‍-installation)

You can install the package via composer:

```
composer require arielmejiadev/json-api-auth --dev
```

📦 Usage
-------

[](#-usage)

```
php artisan json-api-auth:install
```

### 🔬 Testing

[](#-testing)

```
php artisan test
```

### 📚 Changelog

[](#-changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

👍 Contributing
--------------

[](#-contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### 🔒 Security

[](#-security)

If you discover any security related issues, please email  instead of using the issue tracker.

💎 Credits
---------

[](#-credits)

- [Ariel Mejia Dev](https://github.com/arielmejiadev)
- [All Contributors](../../contributors)

📓 License
---------

[](#-license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Support the project
-------------------

[](#support-the-project)

Hey 👋 thanks for considering making a donation, with these donations I can continue working to contribute to opensource projects.

[ ![](https://camo.githubusercontent.com/9005c0d063376d1a17bfcc48dcebb28150c668c4b0615cc02398934d7b20f3cc/68747470733a2f2f696d672e6275796d6561636f666665652e636f6d2f627574746f6e2d6170692f3f746578743d427579206d65206120636f6666656526656d6f6a693d26736c75673d617269656c6d656a696164657626627574746f6e5f636f6c6f75723d46463546354626666f6e745f636f6c6f75723d66666666666626666f6e745f66616d696c793d436f6f6b6965266f75746c696e655f636f6c6f75723d30303030303026636f666665655f636f6c6f75723d464644443030)](https://www.buymeacoffee.com/arielmejiadev)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 94.7% 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 ~118 days

Recently: every ~148 days

Total

6

Last Release

1387d ago

PHP version history (2 changes)1.0.0PHP ^7.1|^8.0

1.0.3PHP ^7.4|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31971074?v=4)[ArielMejiaDev](/maintainers/ArielMejiaDev)[@ArielMejiaDev](https://github.com/ArielMejiaDev)

---

Top Contributors

[![ArielMejiaDev](https://avatars.githubusercontent.com/u/31971074?v=4)](https://github.com/ArielMejiaDev "ArielMejiaDev (18 commits)")[![pjhile](https://avatars.githubusercontent.com/u/224067?v=4)](https://github.com/pjhile "pjhile (1 commits)")

---

Tags

authenticationjwtlaravelpassportphprestful-apisanctumarielmejiadevjson-api-auth

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/arielmejiadev-json-api-auth/health.svg)

```
[![Health](https://phpackages.com/badges/arielmejiadev-json-api-auth/health.svg)](https://phpackages.com/packages/arielmejiadev-json-api-auth)
```

###  Alternatives

[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5752.3M18](/packages/directorytree-ldaprecord-laravel)[illuminate/auth

The Illuminate Auth package.

10528.2M1.2k](/packages/illuminate-auth)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6804.7k6](/packages/hasinhayder-tyro)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1563.1k4](/packages/masterix21-laravel-licensing)

PHPackages © 2026

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