bitnob/bitnob-php-sdk

Official PHP SDK to interact with Bitnob's API

2.0.7 2023-06-13 15:59 UTC

This package is auto-updated.

Last update: 2024-12-13 19:08:07 UTC


README

A PHP sdk to interact with bitnob's API

Installation

With Composer

composer require bitnob/bitnob-php-sdk

REQUIREMENTS

  • PHP 8.0+

Usage

Authentication

Generate an API KEY from the Bitnob dashboard

Setup

<?php
include "vendor/autoload.php";

use Bitnob\Client\Options;
use Bitnob\Client\BitnobSdk;

$env = 'production'; or // sandbox
$apikey = 'sk.8fcdc.a23474b7d2612534df';

$options = new Options($env);
$bitnobSdk = new BitnobSdk($apikey, $options);

Example

$response = $bitnobSdk->addresses()->generateUsdtAddress('TRX', 'hello@gmail.com');