Bitcoin-PHP-API
Bitcoin-PHP-API copied to clipboard
Implementation in PHP for the Bitcoin RPC API
Bitcoin-PHP-API
Implementation in PHP for the Bitcoin RPC API.
This is the development version, composer install coming soon. 0.5.0 also available for people who just want the functionality.
You must have bitcoind installed on your server in order to use you can download it here. http://bitcoin.org/en/download
Getting Started (Branch 0.5.0)
To get started include the following code in your project.
include 'src/bitcoin/BitcoinFactory.php';
$bitcoind = \Bitcoin\BitcoinFactory::create("username", "password");
Now you can start interacting with bitcoind. Test it out with the following line of code.
var_dump($connection->getinfo());
Testing
When submitting any changes please ensure all tests are still running properly. This can be done running the code below when in the root directory.
$ vendor/bin/phpunit