PHP code example of bitnob / bitnob-php-sdk

1. Go to this page and download the library: Download bitnob/bitnob-php-sdk 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/ */

    

bitnob / bitnob-php-sdk example snippets



Bitnob\Client\Options;
use Bitnob\Client\BitnobSdk;

$env = 'production'; or // sandbox
$apikey = 'sk.8fcdc.a23474b7d2612534df';

$options = new Options($env);
$bitnobSdk = new BitnobSdk($apikey, $options);

$response = $bitnobSdk->addresses()->generateUsdtAddress('TRX', '[email protected]');