2017 © Pedro Peláez
 

library ezbitcoind-php

image

btccom/ezbitcoind-php

  • Wednesday, July 12, 2017
  • by blocktrail
  • Repository
  • 4 Watchers
  • 1 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 24 % Grown

The README.md

BitcoindRPC

This is a very basic wrapper around https://github.com/nbobtc/bitcoind-php to simply add convenient methods for the available RPC commands., (*1)

Much credit and thanks to https://github.com/JoshuaEstes for writing nbobtc/bitcoind-php, unfortunately in v2 he decided to keep things clean and testable and require a rather verbose syntax to use the lib.
Most of the code in this lib is taken from his v1 where he still had a method for each command., (*2)

Example

require __DIR__ . "/vendor/autoload.php";

$rpc = new Btccom\BitcoindRPC\BitcoindRPC("http://rpcuser:rpcpassword@localhost:18332");

var_dump($rpc->getInfo()['blocks']);
var_dump($rpc->getBlockCount());
var_dump($rpc->getBlockHash($rpc->getBlockCount()));
var_dump(count($rpc->getBlock($rpc->getBlockHash($rpc->getBlockCount()))['tx']));

The Versions

12/07 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

12/07 2017

v0.0.3

0.0.3.0

  Sources   Download

MIT

The Requires

 

12/07 2017

v0.0.2

0.0.2.0

  Sources   Download

MIT

The Requires

 

12/07 2017

v0.0.1

0.0.1.0

  Sources   Download

MIT

The Requires