PHP code example of samyan / coinbase-pro

1. Go to this page and download the library: Download samyan/coinbase-pro 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/ */

    

samyan / coinbase-pro example snippets


use Samyan\ApiAuth;
use Samyan\Coinbase;

$auth = new ApiAuth('YOUR_API_KEY', 'YOUR_SECRET_KEY', 'YOUR_PASSPHRASE');
$coinbaseClient = new Coinbase($auth, false, false);

$result = $coinbaseClient->withdrawal('0.05', 'BTC', 'bc1qzep2wle7f9ane6aa2kchvnu5r2z4340h09ypx7');