bitnob/bitnob-php-sdk

Official PHP SDK to interact with Bitnob's API

2.0.0 2022-03-03 09:35 UTC

This package is auto-updated.

Last update: 2022-05-01 00:16:42 UTC


README

A PHP sdk to interact with bitnob's API

Installation

With Composer

composer require bitnob/bitnob-php-sdk:2.0.0

REQUIREMENTS

  • PHP 7.4+

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);