Skip to content

Commit baffa08

Browse files
author
David Whitehurst
committed
fixed example to show use of composer-pulled libraries
1 parent 6526fc7 commit baffa08

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ composer require nbobtc/bitcoind-php
2121
To use the project you need to just create a new instance of the class.
2222

2323
```php
24+
<?php
25+
26+
require __DIR__ . '/vendor/autoload.php';
27+
2428
$command = new \Nbobtc\Command\Command('getinfo');
2529
$client = new \Nbobtc\Http\Client('https://username:password@localhost:18332');
2630

@@ -29,6 +33,9 @@ $response = $client->sendCommand($command);
2933

3034
/** @var string */
3135
$contents = $response->getBody()->getContents();
36+
echo $contents;
37+
38+
3239
```
3340

3441
You are able to get the [Request] and [Response] objects back from

0 commit comments

Comments
 (0)