A simple PHP SDK for interacting with Crypto Unifier API V1.
You can install the package via composer:
composer require cryptounifier/php-sdk
You can use the WalletAPI
class for convenient access to API methods. Some are defined in the code:
use CryptoUnifier/Api/WalletAPI;
$client = new WalletAPI('WALLET_KEY', 'SECRET_KEY', 'btc');
$balance = $client->getBalance();
var_dump($balance);
$depositAddresses = $client->getDepositAddresses();
var_dump($depositAddresses);
You can use the MerchantAPI
class for convenient access to API methods. Some are defined in the code:
use CryptoUnifier/Api/MerchantAPI;
$client = new MerchantAPI('MERCHANT_KEY', 'SECRET_KEY');
$invoice = $client->createInvoice(['btc', 'bch', 'eth']);
var_dump($invoice);
The MIT License (MIT). Please see License File for more information.