dereuromark / cakephp-hashid

CakePHP plugin to use hashids for your database table lookups
MIT License
36 stars 13 forks source link

configure array options min_hash_length and alphabet #4

Closed allandiego closed 7 years ago

allandiego commented 8 years ago

Hello,

I think it would be interesting to create in the configuration array +2 parameters to access the options of the hashids constructor $min_hash_length and $alphabet in addition to the $salt that already exists

Hashids: public function __construct($salt = '', $min_hash_length = 0, $alphabet = '')

dereuromark commented 8 years ago

Feel free to make a PR. Maybe minHashLength as naming, but sure.

dereuromark commented 7 years ago

PR now open.