mastercoin / mastercore-php
RPC wrapper for the JSON-RPC API interface of Master Core
Requires
- nbobtc/bitcoind-php: ~1.0
This package is not auto-updated.
Last update: 2024-12-17 04:01:30 UTC
README
This project is a PHP wrapper for Master Core.
Usage
To use the RPC wrapper you basically need to do the following:
use Mastercoin\MasterCore\MasterCoreRpc; ... $mastercore = new MasterCoreRpc('http://rpcuser:rpcpass@rpchost:rpcport'); $mastercore->...
Please take a look at the example and the interface documentation.
Additional information are available in the official Master Core API documentation.
Installation
The recommended way to install this library is by using composer and packagist.
If not already done, install composer:
curl -sS https://getcomposer.org/installer | php
To use this project as a library, create or edit the file composer.json
and add:
{ "require": { "mastercoin/mastercore-php": "~1.0" } }
And execute within your project dir:
php composer.phar install
To create mastercore-php as a new project, execute the following command:
php composer.phar create-project mastercoin/mastercore-php
Based on your system composer
and php composer.phar
might be used synonymously.
Dependencies
For the Bitcoin Core base and RPC connection nbobtc/bitcoind-php (packagist) is used.