PHPackages                             apinstein/expiring-hash - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. apinstein/expiring-hash

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

apinstein/expiring-hash
=======================

A utililty to easily create crypographically signed URLs for temporary ad-hoc URL access.

v0.0.2(13y ago)1634.4k41MITPHPPHP &gt;=5.2.0

Since Feb 12Pushed 12y ago1 watchersCompare

[ Source](https://github.com/apinstein/ExpiringHash)[ Packagist](https://packagist.org/packages/apinstein/expiring-hash)[ Docs](http://github.com/apinstein/ExpiringHash)[ RSS](/packages/apinstein-expiring-hash/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (1)

ExpiringHash

Small helper class to create a URL parameter containing a tamper-proof expiration date.

This allows you to implement expiring URLs in the same way that Amazon S3 supports.

```
// create
$eh = new ExpiringHash('my secret');
$hash = $eh->generate("15 minutes");
$url = "http://foo.com/mydownload?hash={$hash}";

// verify
$eh = new ExpiringHash('my secret');
$okToDownload = $eh->validate($_GET['hash']);
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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

Unknown

Total

1

Last Release

4889d ago

### Community

Maintainers

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

---

Top Contributors

[![apinstein](https://avatars.githubusercontent.com/u/34889?v=4)](https://github.com/apinstein "apinstein (5 commits)")[![sprain](https://avatars.githubusercontent.com/u/260361?v=4)](https://github.com/sprain "sprain (1 commits)")

---

Tags

url

### Embed Badge

![Health badge](/badges/apinstein-expiring-hash/health.svg)

```
[![Health](https://phpackages.com/badges/apinstein-expiring-hash/health.svg)](https://phpackages.com/packages/apinstein-expiring-hash)
```

###  Alternatives

[spatie/url

Parse, build and manipulate URL's

74115.7M123](/packages/spatie-url)[league/uri-components

URI components manipulation library

31940.5M98](/packages/league-uri-components)[jbroadway/urlify

A fast PHP slug generator and transliteration library that converts non-ascii characters for use in URLs.

6758.1M80](/packages/jbroadway-urlify)[sabre/uri

Functions for making sense out of URIs.

29437.7M45](/packages/sabre-uri)[spomky-labs/base64url

Base 64 URL Safe Encoding/Decoding PHP Library

15442.9M61](/packages/spomky-labs-base64url)[misd/linkify

Converts URLs and email addresses in text into HTML links

1163.2M12](/packages/misd-linkify)

PHPackages © 2026

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