Laravel Package: Optimus id transformation

optimus

Jens Segers has a created a Laravel package to obfuscate ids named Optimus:

With this library, you can transform your internal id’s to obfuscated integers based on Knuth’s integer hash. It is similar to Hashids, but will generate integers instead of random strings. It is also super fast.

When I asked Jens about where the name Optimus came from he said, “I came up with the name Optimus when I was looking at the constructor of the class: new Optimus($prime);“.