paralleldrive / cuid

Collision-resistant ids optimized for horizontal scaling and performance.
Other
3.44k stars 123 forks source link

Literal PHP port #49

Closed joecohens closed 6 years ago

joecohens commented 9 years ago

Hey! @ericelliott I know there's already a PHP version of the package but I wanted a literal import of the node version. When you have time can you take a look at it? https://github.com/Shoperti/Cuid Thanks :)

ericelliott commented 9 years ago

Thanks. =)

ericelliott commented 9 years ago

Why is it a class? Why two simple functions, instead?

joecohens commented 9 years ago

It's a common way to do it in PHP with OOP. You can see https://github.com/ramsey/uuid as reference. Btw tests are passing just Travis is acting weird with time out since we are running 100000 generated test.

ericelliott commented 9 years ago

ah, I see. =)