PHPackages                             swimtobird/kong-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. [Security](/categories/security)
4. /
5. swimtobird/kong-hmac

ActiveLibrary[Security](/categories/security)

swimtobird/kong-hmac
====================

v0.1.4(8y ago)23941PHP

Since Feb 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/swimtobird/kong-hmac)[ Packagist](https://packagist.org/packages/swimtobird/kong-hmac)[ RSS](/packages/swimtobird-kong-hmac/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (6)Used By (0)

HMAC Authentication with Kong by PHP
====================================

[](#hmac-authentication-with-kong-by-php)

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

[](#installation)

`composer require swimtobird/kong-hmac`

HOW TO USE
----------

[](#how-to-use)

- GET

```
        $hamc = new Hmac('user','secret','example.com','GET');

        $hamc->setUrl('/default');

        $header = $hamc->getHeader();

        $client = new GuzzleHttp\Client(['base_uri' => 'http://example.com']);

        $request = $client->request('GET', '/default', [
            'headers' => $header
        ]);

        print json($response->getBody(),true);
```

- POST

```
        $hamc = new Hmac('user','secret','example.com','POST');

        $hamc->setUrl('/default');

        $header = $hamc->getHeader();

        $client = new GuzzleHttp\Client(['base_uri' => 'http://example.com']);

        $request = $client->request('POST', '/default', [
            'headers' => $header
            'form_params'=>[
                'params' => 'test'
            ]
        ]);

        print json($response->getBody(),true);
`````
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~6 days

Total

5

Last Release

2974d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9426358?v=4)[Lu YongHong](/maintainers/swimtobird)[@swimtobird](https://github.com/swimtobird)

---

Top Contributors

[![kkkino](https://avatars.githubusercontent.com/u/24751576?v=4)](https://github.com/kkkino "kkkino (3 commits)")[![swimtobird](https://avatars.githubusercontent.com/u/9426358?v=4)](https://github.com/swimtobird "swimtobird (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/swimtobird-kong-hmac/health.svg)

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

###  Alternatives

[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[craftpulse/craft-password-policy

Password Policy plugin

2826.0k1](/packages/craftpulse-craft-password-policy)[liquidweb/ssl-certificate

A class to easily query the properties of and validate the status of an ssl certificate

183.7k](/packages/liquidweb-ssl-certificate)

PHPackages © 2026

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