PHPackages                             harlam/auth-secret-keys - 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. harlam/auth-secret-keys

ActiveLibrary

harlam/auth-secret-keys
=======================

Simple secret keys authentication service

v2.0(6y ago)0401MITPHPPHP &gt;=7.1

Since Jun 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/harlam/auth-secret-keys)[ Packagist](https://packagist.org/packages/harlam/auth-secret-keys)[ RSS](/packages/harlam-auth-secret-keys/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

Usage:

```
/** Initialize keys storage */
$keysStorage = new KeysStorage('/tmp/storage/secret-keys');

$keysManager = new KeysManager($keysStorage, new BaseGenerator());

/* Validation max attempts (default 3) */
$keysManager->setValidationMaxAttempts(5);

/* Secret key lifetime (default 300 sec.) */
$keysManager->setValidationMaxLifetime(300);

/* Secret key generation request interval (default 60 sec.) */
$keysManager->setRequestInterval(15);

/* Static keys (default empty) */
$keysManager->setPresetKeys(['owner' => 'static-secret']);

/** Generate secret key with owner */
$key = $keysManager->generate('owner');

/** Or validate secret key */
$key = (new KeyEntity)
    ->setOwner('owner')
    ->setKey('secret');

$keysManager->validate($key);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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

Total

4

Last Release

2301d ago

Major Versions

v1.0.2 → v2.02020-01-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/3aa2460c263fee25d06e4b7263be903a9075313fb164a43cd244e31a1d955367?d=identicon)[harlam](/maintainers/harlam)

---

Top Contributors

[![harlam](https://avatars.githubusercontent.com/u/8457029?v=4)](https://github.com/harlam "harlam (9 commits)")

### Embed Badge

![Health badge](/badges/harlam-auth-secret-keys/health.svg)

```
[![Health](https://phpackages.com/badges/harlam-auth-secret-keys/health.svg)](https://phpackages.com/packages/harlam-auth-secret-keys)
```

PHPackages © 2026

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