Search by

bitgen / sdk

hlavigne

Official PHP SDK for the BITGEN API v4

v1.0.6 2026-10-09 13:35 UTC

This package is auto-updated.

Last update: 2026-10-09 13:36:36 UTC


README

Official PHP SDK for the BITGEN API v4 — server-side, PHP 8.2+, no dependency beyond ext-curl and ext-json. Install it with composer require bitgen/sdk.

<?php

use Bitgen\Sdk\BitgenClient;
use Bitgen\Sdk\Env;

$client = new BitgenClient(
    scope: 'YOUR_ORGANIZATION_SCOPE',   // uuid of the organization that owns the key
    apiKey: 'YOUR_API_KEY',
    env: Env::SANDBOX,                  // Env::PRODUCTION by default
);
  • Installation — PHP 8.2+, Composer, the classes to import
  • Quick start — a customer, their EUR account, a wallet, a purchase
  • Configuration — credentials, environments, custom host, timeout
  • Concepts — user references, amounts, pagination, assets, activation, the flows of a purchase, a sale, a deposit and a withdrawal
  • Errors — BitgenException, error codes, invalid arguments

Resources, in the order of an integration:

License

Private — © BITGEN