PHPackages                             horsev/expiring-key-generator - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. horsev/expiring-key-generator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

horsev/expiring-key-generator
=============================

Generate date-based expiring keys with SHA256 hashing and time-window validation

v1.0.0(2mo ago)00MITPHPPHP &gt;=8.1

Since Feb 26Pushed 2mo agoCompare

[ Source](https://github.com/Horsev/expiring-key-generator-php)[ Packagist](https://packagist.org/packages/horsev/expiring-key-generator)[ RSS](/packages/horsev-expiring-key-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

expiring-key-generator (PHP)
============================

[](#expiring-key-generator-php)

Generate date-based keys and validate them within a time window. Uses a secret alphabet for base-N encoding + SHA256 hashing.

PHP port of [expiring-key-generator](https://www.npmjs.com/package/expiring-key-generator) — keys are cross-compatible with the same secret.

- Zero dependencies (besides PHP 8.1+)
- Algorithmic generation
- No database needed

Install
-------

[](#install)

```
composer require horsev/expiring-key-generator
```

Usage
-----

[](#usage)

```
