hmacauth/laravel-hmac-auth
HMAC API authentication for Laravel with signature verification, replay attack prevention, and rate limiting
| Install | |
|---|---|
composer require hmacauth/laravel-hmac-auth |
|
| Latest Version: | v1.0.0 |
| PHP: | ^8.3 |
| License: | MIT |
| Last Updated: | Jun 8, 2026 |
| Links: | GitHub · Packagist |
Maintainer: rickeysxhemz
Laravel HMAC Authentication
HMAC-based API authentication for Laravel 11/12.
Install
composer require hmacauth/laravel-hmac-auth
php artisan hmac:install
php artisan migrate
php artisan hmac:generate
Protect Routes
Route::middleware('hmac.verify')->group(function () {
Route::post('/api/resource', ResourceController::class);
});
Documentation
See docs/ for full documentation:
Requirements
- PHP 8.3+
- Laravel 11.x / 12.x
- Redis