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.
https://hashids.org/php
MIT License
5.29k stars 417 forks source link

Why isn't there "fluent setters" ? #158

Closed Mina-R-Meshriky closed 3 years ago

Mina-R-Meshriky commented 3 years ago

I would first like to thank you for this wonderful library.

I noticed that if I needed to change the salt or the minHashLength of the class I'll have to make a new object new Hashids('asd',3);, It would be nice to have the ability to change that on the same object.

vinkla commented 3 years ago

Thanks for the suggestion. Not sure how this would work and I'm currently not seeing this as a future feature in this library.