Looking to hire Laravel developers? Try LaraJobs

laravel-hmac-auth maintained by hmacauth

Description
HMAC API authentication for Laravel with signature verification, replay attack prevention, and rate limiting
Last update
2026/05/11 04:35 (dev-dependabot/github_actions/actions/dependency-review-action-5)
License
Links
Downloads
0

Comments
comments powered by Disqus

Laravel HMAC Authentication

Tests Packagist Version Downloads License

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

License

MIT