New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

xaamin/sanctum

Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.
3,587 1

Larablocks Analysis

xaamin/sanctum works with Laravel 9 to 13 (latest release v1.1.0, Nov 29, 2026).

Promising: maintained and up to date, meets 2 of 4 checks; not yet widely used.

  • Works with Laravel 13, the current version
  • Released in the last 12 months (Nov 29, 2026)
  • 154 downloads a month (needs 10,000)
  • 1 GitHub star (needs 100)

State

Maintained
  • Last stable release: Nov 29, 2026.
  • 1 release in the last 12 months.
  • First released: May 22, 2023.
  • Monthly downloads: 154, down 29% from six months ago.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.

Install
composer require xaamin/sanctum
Latest Version:v1.1.0
PHP:^8.0.2
Laravel:9 – 13
License:MIT
Last Updated:Nov 29, 2026
Links: GitHub  ·  Packagist
Maintainer: xaamin

Logo Laravel Sanctum

Build Status Total Downloads Latest Stable Version License

Introduction

Sanctum provides a featherweight authentication system for SPAs and simple APIs.

Installation

This package requires PHP >= 8.0 and Laravel >= 9 (Laravel 13 requires PHP >= 8.3).

Step 1 - Install the package on your project

composer require xaamin/sanctum

Step 2 - The service provider is registered automatically through Laravel package discovery. If you have disabled discovery, add Laravel\Sanctum\SanctumServiceProvider::class to bootstrap/providers.php (Laravel 11+) or to the providers array in config/app.php (Laravel 9/10).

Step 3 - Use sanctum as your driver for api guard in your config/auth.php file, copy the auth config file sample from here.

'guards' => [
    'api' => [
        'driver' => 'sanctum',
        'provider' => 'users',
        'hash' => false,
    ],
],

Official Documentation

Documentation for Sanctum can be found on the Laravel website.

Contributing

Thank you for considering contributing to Sanctum! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

License

Sanctum is open-sourced software licensed under the MIT license.

Related Packages

masim-appcrates/laravel-authentication

My Custome Laravel Authentication

6 0
usmonaliyev/redium

A high-performance laravel auth package powered by redis, inspired by sanctum.

1,023 5
jurager/tracker

Track Sanctum tokens in Laravel.

1,005 1
laravel/fortify

Backend controllers and scaffolding for Laravel authentication.

81,524,792 1,764
laravel/breeze

Minimal Laravel authentication scaffolding with Blade and Tailwind.

48,288,134 3,057

Version History

Version Released PHP Laravel License
v1.1.0 ^8.0.2 ^9.21|^10.0|^11.0|^12.0|^13.0 MIT
v1.0.3 ^8.0.2 ^9.21|^10.0|^11.0|^12.0 MIT
v1.0.2 ^8.0.2 ^9.21|^10.0|^11.0 MIT
v1.0.1 ^8.0.2 ^9.21|^10.0 MIT
v1.0 ^8.0.2 ^9.21|^10.0 MIT