cryptounifier / php-sdk
CryptoUnifier API PHP Integration.
Installs: 14 046
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 2
Open Issues: 1
Requires
- php: >=7.2
- guzzlehttp/guzzle: ^6.0|^7.3
README
A simple PHP SDK for interacting with Crypto Unifier API V1.
Installation
You can install the package via composer:
composer require cryptounifier/php-sdk
Usage
Using the Wallet API client
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);
Using the Merchant API client
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);
License
The MIT License (MIT). Please see License File for more information.