3 ms·
Out of curiosity, I just wrote a PHP ulid() function. [1] It took me a little more than 5 minutes, so it wasn't that hard after all. It appears to run at only
by aruggirello 10y ago
Out of curiosity, I just wrote a PHP ulid() function. [1]
It took me a little more than 5 minutes, so it wasn't that hard after all. It appears to run at only about 35% the speed of the Go version, but hopefully there's still room for some little improvement.
[1] https://github.com/phptools/ulid https://github.com/phptools/ulid
- tsenart 10y agoFellow PHP implementation: https://github.com/Lewiscowles1986/ulid https://github.com/Lewiscowles1986/ulid