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. [API Development](/categories/api)
4. /
5. dv-net/dv-net-php-client

ActiveLibrary[API Development](/categories/api)

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

A convenient way to integrate DV.net to your platform

v0.9.7(8mo ago)1610.4k↓28.4%6[1 PRs](https://github.com/dv-net/dv-net-php-client/pulls)MITPHPPHP ^8.1

Since May 23Pushed 8mo 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 2w 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

41

—

FairBetter than 87% of packages

Maintenance60

Regular maintenance activity

Popularity35

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 52.9% 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

256d 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)")[![qsers7](https://avatars.githubusercontent.com/u/78759880?v=4)](https://github.com/qsers7 "qsers7 (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

[openai-php/client

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

5.8k29.9M347](/packages/openai-php-client)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

36826.2k2](/packages/telnyx-telnyx-php)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k21](/packages/tempest-framework)[getbrevo/brevo-php

Official PHP SDK for the Brevo API.

1004.1M59](/packages/getbrevo-brevo-php)[n1ebieski/ksef-php-client

PHP API client that allows you to interact with the API Krajowego Systemu e-Faktur

9082.3k](/packages/n1ebieski-ksef-php-client)[trycourier/courier

Courier PHP SDK

16667.9k](/packages/trycourier-courier)

PHPackages © 2026

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