PHP code example of cryptounifier / php-sdk
1. Go to this page and download the library: Download cryptounifier/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/ */
cryptounifier / php-sdk example snippets
use CryptoUnifier/Api/WalletAPI;
$client = new WalletAPI('WALLET_KEY', 'SECRET_KEY', 'btc');
$balance = $client->getBalance();
var_dump($balance);
$depositAddresses = $client->getDepositAddresses();
var_dump($depositAddresses);
use CryptoUnifier/Api/MerchantAPI;
$client = new MerchantAPI('MERCHANT_KEY', 'SECRET_KEY');
$invoice = $client->createInvoice(['btc', 'bch', 'eth']);
var_dump($invoice);
bash
composer