Skip to content

Commit

Permalink
Release v1.0.6
Browse files Browse the repository at this point in the history
Minor fixes and improved test coverage
  • Loading branch information
denpamusic committed Feb 5, 2017
1 parent 93eadbc commit 5e0a43d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ PHP 5.6 or higher
## Usage
Create new object with url as parameter
```php
$bitcoind = new Denpa\Bitcoin\Client('http://rpcuser:rpcpassword@localhost:8332/');
use Denpa\Bitcoin\Client as BitcoinClient;

$bitcoind = new BitcoinClient('http://rpcuser:rpcpassword@localhost:8332/');
```
or use array to define your bitcoind settings
```php
$bitcoind = new Denpa\Bitcoin\Client([
use Denpa\Bitcoin\Client as BitcoinClient;

$bitcoind = new BitcoinClient([
'scheme' => 'http', // optional, default http
'host' => 'localhost', // optional, default localhost
'port' => 8332, // optional, default 8332
Expand Down

0 comments on commit 5e0a43d

Please sign in to comment.