PHPackages                             bitcoinvn/bitcoinvn-php - 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. bitcoinvn/bitcoinvn-php

ActiveLibrary[API Development](/categories/api)

bitcoinvn/bitcoinvn-php
=======================

Multi cryptocurrency instant exchange

0.1(4y ago)0512MITPHPPHP &gt;=7.4

Since Dec 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/bitcoinvietnam/bitcoinvn-php-v2)[ Packagist](https://packagist.org/packages/bitcoinvn/bitcoinvn-php)[ RSS](/packages/bitcoinvn-bitcoinvn-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

bitcoinvn-php
=============

[](#bitcoinvn-php)

The BitcoinVN SDK helps you to integrate with the [BitcoinVN API](https://bitcoinvn.io/api/doc).

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

[](#installation)

Run `composer install bitcoinvn/bitcoinvn-php`

Usage
-----

[](#usage)

Generate an API key at

### Examples

[](#examples)

#### Get info

[](#get-info)

Object containing all sorts of information about assets and transfer methods supported on the exchange.

You can use this to check fees for example.

```
$bitcoinVn = new \BitcoinVN\BitcoinVN('YOUR_API_KEY');
$info = $bitcoinVn->info();
```

#### Get balances

[](#get-balances)

Check your balances on the exchange.

```
$bitcoinVn = new \BitcoinVN\BitcoinVN('YOUR_API_KEY');
$balances = $bitcoinVn->balances();
foreach ($balances as $asset => $balance) {
    echo "My {$asset} balance: {$balance}\n";
}

#### Buy 0.1 BTC

```php
$bitcoinVn = new \BitcoinVN\BitcoinVN('YOUR_API_KEY');
$quote = $bitcoinVn->quote('vnd', 'btc', null, 0.1);
$order = $bitcoinVn->fixedSwap($quote->getId(), '12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX');
echo "Send {$order->getDepositAmount()} VND in order to receive 0.1 BTC.";
```

#### Buy BTC for 1,000,000 VND

[](#buy-btc-for-1000000-vnd)

```
$bitcoinVn = new \BitcoinVN\BitcoinVN('YOUR_API_KEY');
$quote = $bitcoinVn->quote('vnd', 'btc', 1_000_000);
$order = $bitcoinVn->fixedSwap($quote->getId(), '12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX');
echo "Send 1,000,000 VND in order to receive {$order->getSettleAmount()} BTC.";
```

#### Sell any amount of BTC for VND

[](#sell-any-amount-of-btc-for-vnd)

You don't necessarily need a quote to create an order. With a variable order the final settle amount will be determined upon confirmation of your payment.

```
$bitcoinVn = new \BitcoinVN\BitcoinVN('YOUR_API_KEY');
$order = $bitcoinVn->variableSwap('btc', 'vnd', [
    'bank' => 'vietcombank',
    'accountNumber' => '0123456789',
    'accountHolder' => 'Satoshi Nakamoto'
]);
echo "Send any amount of BTC to {$order->getSettleData()['address']} in order to receive VND.";
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

1623d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7058895?v=4)[Alex](/maintainers/sonofliberty)[@sonofliberty](https://github.com/sonofliberty)

---

Top Contributors

[![sonofliberty](https://avatars.githubusercontent.com/u/7058895?v=4)](https://github.com/sonofliberty "sonofliberty (5 commits)")

### Embed Badge

![Health badge](/badges/bitcoinvn-bitcoinvn-php/health.svg)

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

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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