PHPackages                             complex-media/guzzle-hawk - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. complex-media/guzzle-hawk

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

complex-media/guzzle-hawk
=========================

A GuzzlePHP plugin for Hawk authentication

v0.1.0(10y ago)01711[1 issues](https://github.com/complex-media/guzzle-hawk/issues)1MITPHPPHP &gt;=5.4.0

Since Oct 14Pushed 8y ago3 watchersCompare

[ Source](https://github.com/complex-media/guzzle-hawk)[ Packagist](https://packagist.org/packages/complex-media/guzzle-hawk)[ RSS](/packages/complex-media-guzzle-hawk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (1)

A Hawk Authenticator for Guzzle. [![](https://camo.githubusercontent.com/d0746cc327512e45ac1ab4a1ac2dc0e4977c1f3e5d2b9bd4668c6e8a8d5e65c3/68747470733a2f2f67612d626561636f6e2e61707073706f742e636f6d2f55412d36383839393438312d312f67757a7a6c652d6861776b2f726561646d653f706978656c)](https://camo.githubusercontent.com/d0746cc327512e45ac1ab4a1ac2dc0e4977c1f3e5d2b9bd4668c6e8a8d5e65c3/68747470733a2f2f67612d626561636f6e2e61707073706f742e636f6d2f55412d36383839393438312d312f67757a7a6c652d6861776b2f726561646d653f706978656c)
==================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#a-hawk-authenticator-for-guzzle-)

Originally developed by [jeskew](https://github.com/jeskew/guzzle-hawk), this extremely simple Plugin provides middleware you can place on your Guzzle client to automagically sign your requests.

Usage
-----

[](#usage)

First, install with Composer:

```
composer require complex-media/guzzle-hawk

```

Then, use it in code.

```
use ComplexMedia\Guzzle\Plugin\Hawk;
use GuzzleHttp\Client as Guzzle;

$client = new Guzzle();
$signer = new Hawk($key, $secret, $algorithm, $offset);

$client->getEmitter()->attach($signer);
$response = $client->get($URL);

```

`$algorithm` will default to `'sha256'`, but you can set it to whatever your system supports. `$offset` adds a clock skew to synchronize with your server, and defaults to `0`. If you get a 401 from your server, you can adjust several properties on the signer and try again immediately:

```
$signer->key = $new_key
$signer->secret = $new_secret
$signer->algorithm = $new_algorithm
$signer->offset = $new_offset

$response = $client->get($URL);

```

Contributing
------------

[](#contributing)

Yes

License
-------

[](#license)

MIT License applies.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70% 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

Unknown

Total

1

Last Release

3869d ago

### Community

Maintainers

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

---

Top Contributors

[![jeskew](https://avatars.githubusercontent.com/u/705500?v=4)](https://github.com/jeskew "jeskew (7 commits)")[![brettcohen](https://avatars.githubusercontent.com/u/1186322?v=4)](https://github.com/brettcohen "brettcohen (1 commits)")[![frankiethekneeman](https://avatars.githubusercontent.com/u/5040202?v=4)](https://github.com/frankiethekneeman "frankiethekneeman (1 commits)")[![itsnydell](https://avatars.githubusercontent.com/u/1850809?v=4)](https://github.com/itsnydell "itsnydell (1 commits)")

### Embed Badge

![Health badge](/badges/complex-media-guzzle-hawk/health.svg)

```
[![Health](https://phpackages.com/badges/complex-media-guzzle-hawk/health.svg)](https://phpackages.com/packages/complex-media-guzzle-hawk)
```

###  Alternatives

[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)[simplesamlphp/simplesamlphp-module-oidc

A SimpleSAMLphp module adding support for the OpenID Connect protocol

5016.9k1](/packages/simplesamlphp-simplesamlphp-module-oidc)[kinde-oss/kinde-auth-php

Kinde PHP SDK for authentication

2369.5k3](/packages/kinde-oss-kinde-auth-php)[descope/descope-php

Descope SDK for PHP

3814.0k](/packages/descope-descope-php)[njoguamos/laravel-turnstile

A laravel wrapper for https://developers.cloudflare.com/turnstile/

2315.9k2](/packages/njoguamos-laravel-turnstile)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)

PHPackages © 2026

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