jenssegers/optimus
🤖 Id obfuscation based on Knuth's multiplicative hashing method for PHP. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- 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: 4140
- days_rel: n/a
- days_push: 889
- n_releases_24m: 0
Adoption not part of the score
1275 stars · 75 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PHP library that obfuscates internal integer IDs using Knuth's multiplicative hashing, producing reversible obfuscated integers instead of random strings. It includes a CLI 'spark' command to generate the required prime, inverse, and random key values, and integrates easily with Laravel.
Use cases
- hide sequential database ids in urls
- obfuscate integer primary keys in an api
- reversible id obfuscation in php
- alternative to hashids that returns integers
- generate optimus prime and inverse keys
- prevent enumeration of resource ids in laravel
When to choose
- you need fast, reversible integer id obfuscation in PHP
- you want numeric obfuscated ids rather than random strings
- you use Laravel and want a shared Optimus instance via a service provider
When to avoid
- you need cryptographically secure encryption of ids
- you need string-based short hashes like Hashids
- your application is not written in PHP
Facets
library · maturity stable
cryptography serialization developer-tools web-development security developer-tools apis php cli id-obfuscation knuth-hash laravel integer-encoding hashids-alternative
5 sources
- readme: https://github.com/jenssegers/optimus · fetched 2026-08-28 · 29e3a4e516cd
- homepage: https://jenssegers.com · fetched 2026-08-29 · f248c41703ca
- site_page: https://jenssegers.com/decoupling-releases-from-deploys-using-feature-flags · fetched 2026-08-29 · a3f5bde70237
- site_page: https://jenssegers.com/speed-up-phpstorm-with-nyan-cat · fetched 2026-08-29 · 07a29de58bf3
- site_page: https://jenssegers.com/laravel-smtp-driver-vs-api-drivers · fetched 2026-08-29 · dbd815356933
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| jenssegers/optimus | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="jenssegers/optimus")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem