cryptounifier/php-sdk

CryptoUnifier API PHP Integration.

1.1.3 2023-07-30 02:33 UTC

This package is auto-updated.

Last update: 2024-10-30 01:42:57 UTC


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.