mschuett/bitcoin-dev

Bitcoin API to speed up your development.

dev-master 2014-04-15 05:29 UTC

This package is not auto-updated.

Last update: 2024-04-13 13:04:10 UTC


README

Implementation in PHP for the Bitcoin RPC API.

You must have bitcoind installed on your server in order to use you can download it here. http://bitcoin.org/en/download

Getting Started

To download add the following to your composer.json file.

{
    "require": {
        "mschuett/bitcoin-dev": "dev-master"
    }
}

After running composer install you can start using the api below after including autoload in your application.

require_once __DIR__ . '/vendor/autoload.php'; 

To get started include the following code in your project. If you are using another username than bitcoinrpc you can specify after password. If you are not connecting to localhost you can set this after the user paramater. Most people will only need the following however.

$bitcoind = \Bitcoin\Bitcoin::instance('rpcpassword');

Now you can start interacting with bitcoind. Test it out with the following line of code.

var_dump($bitcoind->getinfo());

Major Contributors

haveacigaro