PHPackages                             guzzle/plugin-mardy-hmac - 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. guzzle/plugin-mardy-hmac

ActiveLibrary

guzzle/plugin-mardy-hmac
========================

Guzzle log plugin to inject the HMAC into the headers

09PHP

Since Jun 20Pushed 11y ago1 watchersCompare

[ Source](https://github.com/mardy-git/hmac-guzzle-plugin)[ Packagist](https://packagist.org/packages/guzzle/plugin-mardy-hmac)[ RSS](/packages/guzzle-plugin-mardy-hmac/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Mardy-Git HMAC Guzzle Plugin
============================

[](#mardy-git-hmac-guzzle-plugin)

This plugin will inject the HMAC hash/data/time values directly into the headers of the Guzzle request.

Mardy-Git Hmac:

Guzzle:

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

[](#installation)

To install this use composer by adding

```
"require": {
    "guzzle/plugin-mardy-hmac": "dev-master"
}

```

to your composer.json file

Usage Example
-------------

[](#usage-example)

```
use Mardy\Hmac\Manager;
use Mardy\Hmac\Adapters\Hash;
use Mardy\HmacPlugins\HmacGuzzlePlugin;
use Guzzle\Http\Client;

$manager = new Manager(new Hash);
$client = new Client('http://127.0.0.1');

$this->manager->ttl(0)
              ->data('test') //string containing either a URI or other related data string
              ->time(1396901689) //timestamp for now or whatever other time you want to base the hmac on
              ->key('1234'); //a secure key string that is kept private in the database or config files

$client->addSubscriber(new HmacGuzzlePlugin($this->manager));

$request = $client->get();
$request->send();

//to check what data has been placed in the header it can be retrieved with by using the following code
echo $request->getHeader('Mardy-Hmac-Hash');
echo $request->getHeader('Mardy-Hmac-Time');
echo $request->getHeader('Mardy-Hmac-Data');
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/cd667d9187ff8550a6d90b0db438236b0b8e1c704346400eb71b1cd4ab22baa5?d=identicon)[mardy-git](/maintainers/mardy-git)

### Embed Badge

![Health badge](/badges/guzzle-plugin-mardy-hmac/health.svg)

```
[![Health](https://phpackages.com/badges/guzzle-plugin-mardy-hmac/health.svg)](https://phpackages.com/packages/guzzle-plugin-mardy-hmac)
```

PHPackages © 2026

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