2017 © Pedro Peláez
 

library btcphp

Bitcoin library for PHP

image

shucream0117/btcphp

Bitcoin library for PHP

  • Monday, February 5, 2018
  • by shucream0117
  • Repository
  • 0 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 100 % Grown

The README.md

btcphp

Bitcoin(Litecoin, Monacoin) library for PHP., (*1)

Requirement

  • PHP ≧ 7.1

Installation

via composer., (*2)

$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar require shucream0117/btcphp:dev-master

Example

$btc = new \Shucream0117\Bitcoin\Bitcoin(
    'username', // rpcuser
    'password', // rpcpassword
    'localhost', // host
    19402, // port
    false // if use HTTPS
);

$response = $btc->callApi('getinfo');
$responseArray = json_decode($response->getBody()->getContents(), true);
var_dump($responseArray);

// arguments can be passed as array
// array[0] is argument1, array[1] is argument2...
$response = $btc->callApi(
    'gettransaction',
    ['dee2406ae3ed5e1edc923d69ba795edfc9e01e5cc632ed8b7bb4365df5b106c9']
);

The Versions

05/02 2018

dev-master

9999999-dev

Bitcoin library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar shucream0117

bitcoin litecoin monacoin