Hi,

I'd like to request the submission of a package to PECL.

We've created a PHP extension for base58 encoding and decoding using the
Bitcoin alphabet. It's a simple binding to the bitcoin/libbase58 c library.

The source code can be found here:
https://github.com/legalthings/base58-php-ext

*Why not userspace functions?*
There are some implementations in userspace (
https://github.com/stephen-hill/base58php). These rely on bcmath or gmp and
are much to slow to handle more than a few bytes. This base58 extension
performs as well as comparable functions like `base64_encode`.

Benchmark tests can be found here: https://pastebin.com/8iWyZJX6

Yours,
Arnold Daniels
LegalThings

Reply via email to