PHPackages                             lelectrolux/hmac-utils - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. lelectrolux/hmac-utils

ActiveLibrary[Security](/categories/security)

lelectrolux/hmac-utils
======================

Utilities for Hmac authorisation

3.2.0(5mo ago)0348proprietaryPHPPHP ^8.4

Since Aug 26Pushed 5mo agoCompare

[ Source](https://github.com/Lelectrolux/hmac-utils)[ Packagist](https://packagist.org/packages/lelectrolux/hmac-utils)[ RSS](/packages/lelectrolux-hmac-utils/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (6)Dependencies (10)Versions (7)Used By (0)

Validate server to server messaging through Hmac signatures in a laravel project

Installation
------------

[](#installation)

First install the package

```
composer require lelectrolux/hmac-utils
```

Then, publish the config file, and **fill the necessary `.env` values**

```
php artisan vendor:publish --provider=Lelectrolux\Hmac\Laravel\ServiceProvider
```

Use-cases
---------

[](#use-cases)

Most of the logic is abstracted for 2 use-cases

### My server recieves a Hmac signed request

[](#my-server-recieves-a-hmac-signed-request)

Use the Laravel middleware on your corresponding route

```
use Lelectrolux\Hmac\Laravel\Middleware;

// Any key => secret pair allowed
Route::get('/some/uri')->middleware(Middleware::class)

// Ony those keyed by foo or bar
Route::get('/some/uri')->middleware(Middleware::class.':foo,bar')
```

The hmac uuid will be made available in the [laravel context](https://laravel.com/docs/master/context) at the key `'hmac_request_uuid'` [🔗](https://github.com/Lelectrolux/hmac-utils/blob/930903503e9c2f8f16423d123c9f5b330c8bfc79/src/Laravel/Middleware.php#L41C30-L41C47).

### My server sends a Hmac signed through guzzle

[](#my-server-sends-a-hmac-signed-through-guzzle)

Use the Guzzle middleware factory in your Http client call chain

```
use Illuminate\Support\Facades\Http;
use Lelectrolux\Hmac\Guzzle\MiddlewareFactory;

Http::createPendingRequest()->withMiddleware($middlewareFactory->make('foo'))->...
```

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance73

Regular maintenance activity

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~40 days

Recently: every ~48 days

Total

6

Last Release

153d ago

Major Versions

1.0.0 → 2.0.02025-09-03

2.0.1 → 3.0.02025-09-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/eaffde159c29307b752b8122ab5eaddf82503fec4d510dcac43745c248d642c1?d=identicon)[Lelectrolux](/maintainers/Lelectrolux)

---

Top Contributors

[![Lelectrolux](https://avatars.githubusercontent.com/u/3909549?v=4)](https://github.com/Lelectrolux "Lelectrolux (8 commits)")

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/lelectrolux-hmac-utils/health.svg)

```
[![Health](https://phpackages.com/badges/lelectrolux-hmac-utils/health.svg)](https://phpackages.com/packages/lelectrolux-hmac-utils)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k555.0M2.8k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k54](/packages/neuron-core-neuron-ai)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k6.0M777](/packages/sylius-sylius)[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

11.3k4.0k](/packages/leantime-leantime)[google/cloud

Google Cloud Client Library

1.2k16.9M57](/packages/google-cloud)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
