xaamin/sanctum
Larablocks Analysis
xaamin/sanctum works with Laravel 9 to 13 (latest release v1.1.0, Nov 29, 2026).
Recommendation checks
PromisingPromising: 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 |
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
A high-performance laravel auth package powered by redis, inspired by sanctum.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.1.0 | ^8.0.2 | ^9.21| | MIT | |
| v1.0.3 | ^8.0.2 | ^9.21| | MIT | |
| v1.0.2 | ^8.0.2 | ^9.21| | MIT | |
| v1.0.1 | ^8.0.2 | ^9.21| | MIT | |
| v1.0 | ^8.0.2 | ^9.21| | MIT |