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)13961PHP

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 2w ago

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 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

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

3024d 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

[statamic/cms

The Statamic CMS Core Package

4.8k3.5M925](/packages/statamic-cms)[imdhemy/google-play-billing

Google Play Billing

491.4M5](/packages/imdhemy-google-play-billing)[bitrix24/b24phpsdk

An official PHP library for the Bitrix24 REST API

10239.4k5](/packages/bitrix24-b24phpsdk)[craftpulse/craft-password-policy

Password Policy plugin

2829.0k2](/packages/craftpulse-craft-password-policy)[pimcore/studio-backend-bundle

Pimcore Studio Backend Bundle

20171.5k14](/packages/pimcore-studio-backend-bundle)[japanese-date/japanese-date

日本の暦、祝日を取り扱うライブラリ

169.9k](/packages/japanese-date-japanese-date)

PHPackages © 2026

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