bitnob / bitnob-php-sdk
Official PHP SDK to interact with Bitnob's API
2.0.7
2023-06-13 15:59 UTC
Requires
- php: ^7. || ^8.0
- guzzlehttp/psr7: ^1.9
- http-interop/http-factory-guzzle: ^1.2
- php-http/client-common: ^2.3
- php-http/curl-client: ^2.3
- php-http/discovery: ^1.12
- php-http/guzzle6-adapter: v2.0.2
- php-http/message: ^1.16
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- symfony/options-resolver: ^5.2
Requires (Dev)
- laminas/laminas-diactoros: ^2.4
- php-http/curl-client: ^2.1
- php-http/mock-client: ^1.4
- phpunit/phpunit: ^9.5
- symfony/var-dumper: ^5.1
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');