PHPackages                             jetfueltw/signer-php - 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. jetfueltw/signer-php

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

jetfueltw/signer-php
====================

HMAC-SHA Signature for HTTP Request Authentication

v2.1.0(8y ago)2429MITPHPPHP &gt;=5.6.4

Since Jun 12Pushed 8y agoCompare

[ Source](https://github.com/jetfueltw/signer-php)[ Packagist](https://packagist.org/packages/jetfueltw/signer-php)[ RSS](/packages/jetfueltw-signer-php/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Introduction
------------

[](#introduction)

Creating HMAC-SHA256 signature for a HTTP request.

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

[](#installation)

Add jetfueltw/signer-php as a require dependency in your composer.json file:

```
composer require jetfueltw/signer-php

```

Usage
-----

[](#usage)

```
$signature = Signer::sign($appId, $appSecret, $timestamp, $method, $baseUrl, $parameters, $content);

```

- $appId: The app identifies.
- $appSecret: The app secret key.
- $timestamp: This value should be the number of seconds since the Unix epoch at the point the request is generated.
- $baseUrl: The base URL is the URL to which the request is directed, minus any query string or hash parameters.
- $parameters: HTTP request parameters from query string. You should collect the raw values, do not double-escape any characters.

Example, this is your request:

```
POST https://example.app/api/v1/players?title=title&author=author
{
    "title": "An encoded string!",
    "bar": {
        "sort": 79,
        "status": "ok",
    },
    "publish_at": 123546987,
    "numbers": [98, 23, 45, 78],
    "desc": "Dogs, Cats & Mice",
}

```

Your code.

```
$appId = 'ffe877812ab842a1bc30b27751bbd6ac';
$appSecret = '381ec44adb8347c68ea0eb4d43212dab';
$timestamp = (new DateTime())->getTimestamp(); // 1499158061
$baseUrl = 'https://example.app/api/v1/players';
$parameters = [
    'title'  => 'title',
    'author' => 'author',
];
$content = json_encode([
    'title'      => 'An encoded string!',
    'bar'        => [
        'sort'   => 79,
        'status' => 'ok',
    ],
    'publish_at' => 123546987,
    'numbers'    => [98, 23, 45, 78],
    'desc'       => 'Dogs, Cats & Mice',
]);

$signature = Signer::sign($appId, $appSecret, $timestamp, $method, $baseUrl, $parameters, $content);
// $signature === 'ipvDjcBgv5mt1SHhmJ7TM6nPhKz/Nwc/B8VsGNyY1Vs=';

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~11 days

Total

3

Last Release

3233d ago

Major Versions

v1.0.0 → v2.0.02017-07-03

### Community

Maintainers

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

---

Top Contributors

[![jungle1900](https://avatars.githubusercontent.com/u/646404?v=4)](https://github.com/jungle1900 "jungle1900 (7 commits)")

---

Tags

phpAuthenticationHMAC-SHA

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jetfueltw-signer-php/health.svg)

```
[![Health](https://phpackages.com/badges/jetfueltw-signer-php/health.svg)](https://phpackages.com/packages/jetfueltw-signer-php)
```

###  Alternatives

[kinde-oss/kinde-auth-php

Kinde PHP SDK for authentication

2369.5k3](/packages/kinde-oss-kinde-auth-php)[andalisolutions/oauth2-anaf

Anaf OAuth 2.0 support for the PHP League's OAuth 2.0 Client

194.1k](/packages/andalisolutions-oauth2-anaf)

PHPackages © 2026

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