bitgen / sdk
Official PHP SDK for the BITGEN API v4
v1.0.6
2026-10-09 13:35 UTC
Requires
- php: ^8.2
- ext-curl: *
- ext-json: *
Requires (Dev)
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^11.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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:
- Customers —
$client->customer - Bank accounts —
$client->bank - Custody wallets —
$client->custody - Trading —
$client->trading - Transactions —
$client->transaction - Staking —
$client->staking - Connectors —
$client->core - Webhooks —
$client->webhooks - API keys —
$client->apikeys - Assets —
$client->asset
License
Private — © BITGEN