2017 © Pedro Peláez
 

library coinrpc

Client to communicate with Bitcoind style RPC servers

image

coinrpc/coinrpc

Client to communicate with Bitcoind style RPC servers

  • Thursday, June 25, 2015
  • by coinrpc
  • Repository
  • 0 Watchers
  • 1 Stars
  • 36 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 4 Versions
  • 6 % Grown

The README.md

Coin RPC Client

Coin RPC Client is a library to allow PHP to communicate with a live bitcoind/litecoind/dogecoind etc RPC servers., (*1)

Getting started

Installing via Composer

The recommended way to install CoinRpc is through Composer. Composer is the defacto new way to manage PHP dependencies and autoloading., (*2)

  1. Add coinrpc/coinrpc as a dependency in your project's composer.json file:, (*3)

    {
        "require": {
            "coinrpc/coinrpc": "@dev"
        }
    }
  2. Get Composer and install:, (*4)

    curl -s http://getcomposer.org/installer | php
    php composer.phar install
  3. Require Composer's autoloader, (*5)

    require 'vendor/autoload.php';

Bitcoin Basic usage

    <?php
    use CoinRpc\BitcoinClient;

    $client = new BitcoinClient('http://rpc_user:rpc_password@localhost:8332');

    // optional SSL verification if required (off by default)
    // $client->setSslVerification();

    $info = $client->getInfo();
    $balance = $client->getBalance();
    $txid = $client->sendToAddress('1MYQ7WEyJTPaDWd6wWMYgFCXdxuc2uCvmG', (float) 0.1);

Litecoin or Dogecoin Basic usage

As above but use the LitecoinClient or DogecoinClient in the place of BitcoinClient, (*6)

Contributions

Contribution welcome. Please open a PR or issue at https://github.com/coinrpc/coinrpc, (*7)

The Versions

25/06 2015

dev-master

9999999-dev http://github.com/coinrpc/coinrpc

Client to communicate with Bitcoind style RPC servers

  Sources   Download

MIT

The Requires

 

bitcoin litecoin dogecoin namecoin

25/06 2015

1.0.2

1.0.2.0 http://github.com/coinrpc/coinrpc

Client to communicate with Bitcoind style RPC servers

  Sources   Download

MIT

The Requires

 

bitcoin litecoin dogecoin namecoin

25/06 2015

1.0.1

1.0.1.0 http://github.com/coinrpc/coinrpc

Client to communicate with Bitcoind style RPC servers

  Sources   Download

MIT

The Requires

 

bitcoin litecoin dogecoin namecoin

25/06 2015

1.0.0

1.0.0.0 http://github.com/coinrpc/coinrpc

Client to communicate with Bitcoind style RPC servers

  Sources   Download

MIT

The Requires

 

bitcoin litecoin dogecoin namecoin