doxadoxa/phpbitcoinaddress

dev-master 2018-07-05 12:24 UTC

This package is auto-updated.

Last update: 2020-02-10 13:29:07 UTC


README

Uses for generating Bitcoin addresses in PHP.

Requires:

  • php >7.2
  • gmp

How to use

Use BitcoinAddressGenerator for generating address object.

$address = BitcoinAddressGenerator::generate();

Get address:

$to = $address->address();

Get private key as HEX-string:

$pk = $address->privateKey(true);