PHPackages                             joshmoreno/sanctum-auth-tests - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. joshmoreno/sanctum-auth-tests

ActiveLibrary[Testing &amp; Quality](/categories/testing)

joshmoreno/sanctum-auth-tests
=============================

Auth tests for Laravel Sanctum

v1.0.0(6y ago)493MITPHP

Since Apr 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/JoshMoreno/sanctum-auth-tests)[ Packagist](https://packagist.org/packages/joshmoreno/sanctum-auth-tests)[ RSS](/packages/joshmoreno-sanctum-auth-tests/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Basic auth tests for Laravel's Sanctum
======================================

[](#basic-auth-tests-for-laravels-sanctum)

This is for sanctum `^2.0.0`. Follow their [docs](https://laravel.com/docs/7.x/sanctum) as usual.

Quick note, ownership of these tests is yours. You're free to edit them however you'd like. Add more tests, remove, refactor...whatever you see fit. After installing, you're free to remove the package!

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

[](#installation)

```
composer require joshmoreno/sanctum-auth-tests

php artisan sanctumAuthTests:publish
# same thing as
# php artisan vendor:publish --provider="JoshMoreno\SanctumAuthTests\SanctumAuthTestsServiceProvider" --tag="tests"

# you got what you came for, no need to keep the package around. Bye 👋
composer remove joshmoreno/sanctum-auth-tests
```

Customize
---------

[](#customize)

Reminder, you're free to do whatever you want with the tests after publishing.

By default, the tests assume you're using the typical laravel auth routes for the following:

- login - `route('login')`
- logout - `route('logout')`
- register - `route('register')`
- resend verification email - `route('verification.resend')`
- verify email - `verification.verify // not named in laravel ☹️`
- forgot password - `route('password.email')`
- update password - `route('password.update')`

You can find all of these and more in `tests/Feature/ApiAuth/ApiAuthTestCase.php`.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

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

2210d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9170b96bee56a773d60a4495aa7f16fd5f5ef1fc4e1ed2cf361bf30552af2e6?d=identicon)[joshmoreno](/maintainers/joshmoreno)

---

Top Contributors

[![JoshMoreno](https://avatars.githubusercontent.com/u/22627952?v=4)](https://github.com/JoshMoreno "JoshMoreno (5 commits)")

---

Tags

testlaravelauthtestssanctumjoshmoreno

### Embed Badge

![Health badge](/badges/joshmoreno-sanctum-auth-tests/health.svg)

```
[![Health](https://phpackages.com/badges/joshmoreno-sanctum-auth-tests/health.svg)](https://phpackages.com/packages/joshmoreno-sanctum-auth-tests)
```

###  Alternatives

[mpociot/laravel-test-factory-helper

Generate Laravel test factories from your existing models

933635.2k2](/packages/mpociot-laravel-test-factory-helper)[thedoctor0/laravel-factory-generator

Automatically generate Laravel factories for your models.

214997.4k1](/packages/thedoctor0-laravel-factory-generator)[setiawanhu/sanctum-auth

Laravel package for generating user authentication feature using Laravel Sanctum

132.8k](/packages/setiawanhu-sanctum-auth)

PHPackages © 2026

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