PHPackages                             dv-net/dv-net-php-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. dv-net/dv-net-php-client

ActiveLibrary

dv-net/dv-net-php-client
========================

A convenient way to integrate DV.net to your platform

v0.9.7(5mo ago)157.5k—6.1%6[1 PRs](https://github.com/dv-net/dv-net-php-client/pulls)MITPHPPHP ^8.1

Since May 23Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/dv-net/dv-net-php-client)[ Packagist](https://packagist.org/packages/dv-net/dv-net-php-client)[ RSS](/packages/dv-net-dv-net-php-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (6)Versions (14)Used By (0)

DV Net Client
=============

[](#dv-net-client)

A PHP client for DV Net API integration.

Extended documentation
======================

[](#extended-documentation)

You can find extended documentation at

Installation
------------

[](#installation)

```
composer require dv-net/dv-net-php-client
```

Setup
-----

[](#setup)

Initialize the client with your API configuration:

```
// Create HTTP client (you can use the built-in SimpleHttpClient or your own implementation)
$httpClient = new SimpleHttpClient();

// Initialize the merchant client with your API host
$client = new MerchantClient(
    httpClient: $httpClient,
    host: 'https://api.example.com' // Your DV Net API host
);

// Alternatively, you can pass the host in each request:
$client = new MerchantClient(
    httpClient: $psrHttpClient,
    xApiKey: 'your-api-key',
    host: 'https://api.example.com'
);
```

Usage
-----

[](#usage)

### Signature Verification

[](#signature-verification)

Verify the authenticity of request signatures:

```
$merchantUtilsManager = new MerchantUtilsManager();
$isValid = $merchantUtilsManager->checkSign(
    clientSignature: 'received-signature-hash',
    clientKey: 'your-client-key',
    requestBody: ['data' => 'request-payload']
);
// Returns boolean indicating if the signature is valid
```

### Exchange Balances

[](#exchange-balances)

Get the total exchange balances across all currencies:

```
$client = new MerchantClient($httpClient, $host);
$response = $client->getExchangeBalances(
    xApiKey: 'your-api-key'
);
// Returns TotalExchangeBalanceResponse object with total USD value and individual currency balances
```

### External Wallet

[](#external-wallet)

Create or retrieve an external wallet for a user:

```
$response = $client->getExternalWallet(
    xApiKey: 'your-api-key',
    email: 'user@example.com',
    ip: '127.0.0.1',
    storeExternalId: 'store-123',
    amount: '100.00',
    currency: 'USD'
);
// Returns ExternalAddressesResponse object with wallet details and payment URL
```

### Processing Wallets Balances

[](#processing-wallets-balances)

Get balances for all processing wallets:

```
$balances = $client->getProcessingWalletsBalances(
    xApiKey: 'your-api-key'
);
// Returns ProcessingWalletBalancesResponse object with detailed balance information
```

### Store Currencies

[](#store-currencies)

Get list of available currencies for the store:

```
$currencies = $client->getStoreCurrencies(
    xApiKey: 'your-api-key'
);
// Returns CurrenciesResponse object with detailed currency information
```

### Store Currency Rate

[](#store-currency-rate)

Get current exchange rate for a specific currency:

```
$rate = $client->getStoreCurrencyRate(
    xApiKey: 'your-api-key',
    currencyId: 'BTC'
);
// Returns CurrencyRate object with current rate and source information
```

### Withdrawal Processing Status

[](#withdrawal-processing-status)

Check the status of a withdrawal:

```
$status = $client->getWithdrawalProcessingStatus(
    xApiKey: 'your-api-key',
    withdrawalId: 'withdrawal-123'
);
// Returns ProcessingWithdrawal object with detailed withdrawal status
```

### Initialize Transfer

[](#initialize-transfer)

Initialize a new withdrawal transfer:

```
$withdrawal = $client->initializeTransfer(
    xApiKey: 'your-api-key',
    addressTo: '0x123...',
    currencyId: 'ETH',
    amount: '1.5'
);
// Returns WithdrawalResponse object with transfer details
```

### Webhook Processing

[](#webhook-processing)

Process incoming webhooks:

```
$mapper = new WebhookMapper();
$webhook = $mapper->mapWebhook($rawWebhookData);
// Returns either ConfirmedWebhook or UnconfirmedWebhook object
```

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance71

Regular maintenance activity

Popularity35

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 56.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~27 days

Total

8

Last Release

165d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e8bdcdd2fd8dacfadbab3a26c3288225e92eef80e963d3a32f87fb5bf21835ec?d=identicon)[RadgRabbi](/maintainers/RadgRabbi)

---

Top Contributors

[![kurt-morgan](https://avatars.githubusercontent.com/u/228478470?v=4)](https://github.com/kurt-morgan "kurt-morgan (9 commits)")[![RadgRabbi](https://avatars.githubusercontent.com/u/133571623?v=4)](https://github.com/RadgRabbi "RadgRabbi (5 commits)")[![MyPasswordIsFreedoom](https://avatars.githubusercontent.com/u/220361089?v=4)](https://github.com/MyPasswordIsFreedoom "MyPasswordIsFreedoom (1 commits)")[![tstest908-lab](https://avatars.githubusercontent.com/u/247971643?v=4)](https://github.com/tstest908-lab "tstest908-lab (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dv-net-dv-net-php-client/health.svg)

```
[![Health](https://phpackages.com/badges/dv-net-dv-net-php-client/health.svg)](https://phpackages.com/packages/dv-net-dv-net-php-client)
```

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k22.6M232](/packages/openai-php-client)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[mailgun/mailgun-php

The Mailgun SDK provides methods for all API functions.

1.1k28.9M168](/packages/mailgun-mailgun-php)[shopify/shopify-api

Shopify API Library for PHP

4634.8M16](/packages/shopify-shopify-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
