laravel-hmac-auth maintained by hmacauth
Description
HMAC API authentication for Laravel with signature verification, replay attack prevention, and rate limiting
Author
Last update
2026/05/11 04:35
(dev-dependabot/github_actions/actions/dependency-review-action-5)
License
Downloads
0
Tags
security - api - authentication - middleware - signature - laravel - hmac - nonce - rate-limiting - replay-attack - octane - request-signing
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