vinkla/hashids
A small PHP library to generate YouTube-like ids from numbers. Use it when you don't want to expose your database ids to the user. observed · 2026-08-28
Health v2 · maintenance only
57/100
- Activity 77
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5254
- days_rel: n/a
- days_push: 139
- n_releases_24m: 0
Adoption not part of the score
5429 stars · 413 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A small PHP library that generates YouTube-like short, URL-safe IDs from numbers, so numeric database IDs are not exposed to users. It supports encoding/decoding multiple numbers, custom alphabets, salted uniqueness, and minimum-length padding.
Use cases
- hide database primary keys in urls
- generate short youtube-like ids from numbers in php
- encode multiple numbers into one id
- generate url-safe confirmation codes
- create unique-looking product or event ids
When to choose
- you want to obfuscate sequential numeric ids in a PHP application
- you need reversible, URL-safe short ids rather than one-way hashes
- you want a tiny, well-maintained Composer package with MIT license
When to avoid
- you need encryption or security for sensitive data - these ids are easily decodable
- you should not use it for user ids since decoding can reveal user counts
- you are starting a new project and prefer its successor Sqids
Facets
library · maturity maintenance
serialization security developer-tools web-development backend databases developer-tools php cross-platform hashids obfuscation short-ids url-safe-ids id-encoding composer
3 sources
- readme: https://github.com/vinkla/hashids · fetched 2026-08-28 · 91656a605f63
- homepage: https://hashids.org/php · fetched 2026-08-29 · 64d25e724226
- site_page: https://sqids.org/faq · fetched 2026-08-29 · e604ee26ebd8
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| vinkla/hashids | main | 57 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem