Its a simple library granting access to bitcoind core RPC with simple php methods and auto complete for IDEs
The logic is separated into 3 different departments:
- Wallet
- Transactions
- Blockchain
Instantiating bitcoin
require "../vendor/autoload.php";
$bc = new BitcoindClient(
'foo', // user name
'bar', // password
'localhost', // host address
18333 // rpc port
);
echo $bc->wallet->getAccountAddress("");
echo $bc->wallet->getBalance();
Install the packages via composer
:
composer install
composer dump-autoload
docker-compose up -d
look inside docker with
docker exec -it <containerId> sh
Just run the PHPUnit test suit by:
composer test