PHPackages                             forevermatt/calc-api-sig - 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. [API Development](/categories/api)
4. /
5. forevermatt/calc-api-sig

ActiveLibrary[API Development](/categories/api)

forevermatt/calc-api-sig
========================

0.1.1(10y ago)25.1k2MITPHPPHP &gt;=5.3.0CI failing

Since May 5Pushed 10y ago1 watchersCompare

[ Source](https://github.com/forevermatt/calc-api-sig)[ Packagist](https://packagist.org/packages/forevermatt/calc-api-sig)[ RSS](/packages/forevermatt-calc-api-sig/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (4)Used By (2)

Calc API Sig (calc-api-sig)
===========================

[](#calc-api-sig-calc-api-sig)

Helper class to simplify generating a signature for APIs that use HMAC, such as APIs using [ApiAxle](http://apiaxle.com/).

This uses a given shared secret to calculate a signature for a given API key prepended with the current unix timestamp. A different timestamp can optionally be specified, as can a particular hashing algorithm if something other than the default (SHA1) is desired.

Example Usages
--------------

[](#example-usages)

**Basic**

The expected common usage:

```
$signature = \CalcApiSig\HmacSigner::CalcApiSig('api key', 'shared secret');

```

**Advanced**

A more rare usage, in which the time used is 2 seconds in the future (perhaps to compensate for excessive latency) and the desired hashing algorithm is MD5:

```
$signature = \CalcApiSig\HmacSigner::CalcApiSig(
    'api key',
    'shared secret',
    time() + 2,
    'md5'
);

```

License
-------

[](#license)

Calc API Sig is licensed under the MIT license. See "LICENSE" for details.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

Total

2

Last Release

3901d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/836739aa4f60c754dc9a4a547ebd0c166e4b6e855d9f119df2be5aec92f3a375?d=identicon)[forevermatt](/maintainers/forevermatt)

---

Top Contributors

[![forevermatt](https://avatars.githubusercontent.com/u/6233204?v=4)](https://github.com/forevermatt "forevermatt (15 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/forevermatt-calc-api-sig/health.svg)

```
[![Health](https://phpackages.com/badges/forevermatt-calc-api-sig/health.svg)](https://phpackages.com/packages/forevermatt-calc-api-sig)
```

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M186](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M33](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/common-protos

Google API Common Protos for PHP

173103.7M49](/packages/google-common-protos)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)

PHPackages © 2026

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