PHP code example of dhtech / bitgosdk-php

1. Go to this page and download the library: Download dhtech/bitgosdk-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dhtech / bitgosdk-php example snippets




use dhtech\BitGoSDK\BitGoSDK;



use dhtech\BitGoSDK\BitGoSDK;
use dhtech\BitGoSDK\Enum\CurrencyCode;

$bitgo = new BitGoSDK('YOUR_API_KEY_HERE', CurrencyCode::BITCOIN, false);
$bitgo->walletId = 'YOUR_WALLET_ID_HERE';

$createAddress = $bitgo->createWalletAddress();
sh
# Install Composer
curl -sS https://getcomposer.org/installer | php

# Add the BitGoSDK as a dependency
php composer.phar 
json
"dhtech/bitgosdk-php": "*"