hmacauth/laravel-hmac-auth

HMAC API authentication for Laravel with signature verification, replay attack prevention, and rate limiting

Maintainers

Package info

github.com/rickeysxhemz/hmacAuth

pkg:composer/hmacauth/laravel-hmac-auth

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-01-16 14:55 UTC

This package is auto-updated.

Last update: 2026-03-07 03:23:45 UTC


README

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