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.27k stars 417 forks source link

Add required extensions to composer? #125

Closed davidyell closed 5 years ago

davidyell commented 5 years ago

I tried to deploy this and failed due to missing extensions. It's possible to include these in the composer file.

Adding to the require as such

"require": {
    "ext-gmp": "*"
    // etc
}
vinkla commented 5 years ago

Yes, this is possible. Though, we support both ext-bcmath and ext-gmp and we don't want to enforce either one. It's up to the developer to choose.

https://github.com/ivanakimov/hashids.php/blob/d794d0e8f96452ff150294570bb52fa01db3dc4c/composer.json#L36-L37