bitnob/bitnob-php-sdk

Official PHP SDK to interact with Bitnob's API

2.0.4 2022-10-04 08:40 UTC

This package is auto-updated.

Last update: 2023-02-04 09:19:28 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');