Skip to main content

PHP SDK

The yativo/crypto-sdk Composer package provides a clean, object-oriented PHP interface to the Yativo Crypto API with automatic token refresh and static webhook signature verification. Packagist version

Installation

Package: yativo/crypto-sdk · Latest: 1.0.0 · Requirements: PHP 7.4 or higher, ext-json, Guzzle HTTP 7+.

Quick Start


Constructor Options


Authentication ($sdk->auth)

Register

Login (Passwordless)

Login is passwordless. Call login($email) to send an OTP, then call verifyOTP($otp, $email) to complete authentication.

2FA Setup (Google Authenticator)

Passkey (WebAuthn) Auth

Exchange API Key for Bearer Token


Accounts ($sdk->accounts)


Assets / Wallets ($sdk->assets)

Create a Wallet

Batch Create Wallets

List Wallets

Check Balance


Transactions ($sdk->transactions)

Send Funds (with Idempotency)

Estimate Gas Fee

List Transactions

Get a Transaction


Swap ($sdk->swap)


Cards ($sdk->cards)

Onboard a Cardholder

Create a Virtual Card

Get Card Funding Address

Get Card Transactions


Webhooks ($sdk->webhooks)

Create a Webhook

Verify a Webhook Signature (Static Method)

Auth::verifySignature() is a static helper — you do not need an SDK instance to call it. This makes it easy to use in lightweight webhook endpoints that do not initialise the full SDK.

List / Delete Webhooks


API Keys ($sdk->apiKeys)


Auto-Forwarding ($sdk->autoForwarding)

Auto-forwarding rules automatically sweep incoming deposits to a destination address.

Customers ($sdk->customers)


Analytics ($sdk->analytics)


IBAN ($sdk->standaloneIban)

Pass 'standalone_iban_enabled' => true in the constructor options to unlock this resource.

Exception Handling

Exception Hierarchy


Laravel Service Provider Example