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

ActiveLibrary

testphppackage/php
==================

Demo Package

02PHP

Since Sep 27Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

testphppackage-php
==================

[](#testphppackage-php)

Official PHP SDK for cryptocurrency payment gateway

Usage of library :
------------------

[](#usage-of-library-)

you have to include namespace of package wherever you want to use this library like,

```
require_once __DIR__ . '/vendor/autoload.php';

include('phptestpackage/src/index.php');

```

after using name space you can access all the methods of library by creating object of class like ,

```
 $btc_wallet = new index('private_key', 'public_key', 'BTC');

```

here "BTC" must be needed.

### Get Balance :

[](#get-balance-)

you can get balance of your wallet using get\_balance call.

```
$balance = $btc_wallet->get_balance();

```

this will return either success response or error response if something went wrong.like below is the success response :

```
[
      "status" => true
      "response" => [
            "coin" => "BTC"
            "available" => "0.00000000"
            "locked" => "0.00000000"
            "total" => "0.00000000"
      ]
      "message" => ""
]

```

### Get Deposit Address :

[](#get-deposit-address-)

you can get deposit address of your wallet using get\_deposit\_address call.

```
$balance = $btc_wallet->get_deposit_address();

```

this will return either success response or error response if something went wrong.like below is the success response :

```
[
      "status" => true
      "response" => [
            "address" => "15XWXXXXXXXXXXXJxbeQ3M"
      ]
      "message" => ""
]

```

### Generate Payment Transaction :

[](#generate-payment-transaction-)

you can generate new payment transaction using create\_transaction call.

```
$balance = $btc_wallet->create_transaction($cmd, $amount, $currency1, $currency2, $item_name, $item_number, $invoice, $success_url, $cancel_url, $buyer_email, $address, $buyer_name, $ipn_url);

```

this will return either success response or error response if something went wrong.like below is the success response :

```
[
      "status" => true
      "response" => [
            "original_amount" => "0.1"
            "original_currency" => "ETH"
            "selected_amount" => "0.10000000"
            "selected_currency" => "ETH"
            "address" => "XXXXXXXXXXXXXXXX"
            "payment_id" => "CNWRXTXXXXXXXXXXWSB9"
            "confirms_needed" => 1
            "timeout" => 18000
            "qrcode_url" => "https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=&choe=UTF-8"
      ]
      "message" => ""
]

```

### Get Single Payment Transaction Details :

[](#get-single-payment-transaction-details-)

you can get payment transaction details using get\_tx\_info call.

```
$balance = $btc_wallet->get_tx_info($payment_id);

```

this will return either success response or error response if something went wrong.like below is the success response :

```
[
      "status" => true
      "response" => [
            "transaction_details" => [
                  "payment_id" => "CNWRXXXXXXXXXKASZEQLI"
                  "date_time" => "25-02-2021 19:11:00"
                  "status" => "Payment completed successfully"
                  "original_amount" => "0.10000000"
                  "original_currency" => "ETH"
                  "selected_amount" => "0.10000000"
                  "selected_currency" => "ETH"
                  "buyer_email" => "xxxxxx@xxxx.com"
                  "invoice" => "1234567"
                  "item_name" => "test"
                  "item_number" => "123456789"
            ]
            "payment_details" => [
                  "date_time" => "25-02-2021 19:13:06"
                  "from_address" => "0x6874XXXXXXXXXX56b782919afc85"
                  "to_address" => "0x7346fXXXXXXXXX5cfeb7f1931b8975"
                  "amount" => "0.10000000"
                  "txn_id" => "0x7bcacXXXXXXXXXXX25be3f57cea"
            ]
      ]
      "message" => ""
]

```

### Get All Transaction Details :

[](#get-all-transaction-details-)

you can get all payment transaction details using get\_tx\_list call.

```
$balance = $btc_wallet->get_tx_list();

```

this will return either success response or error response if something went wrong.like below is the success response :

```
[
      "status" => true
      "response" => [
            "transaction_details" => [
                0 => [
                    "payment_id" => "CNWRXXXXXXXXXXASZEQLI"
                    "date_time" => "25-02-2021 19:11:00"
                    "status" => "Payment completed successfully"
                    "original_amount" => "0.10000000"
                    "original_currency" => "ETH"
                    "selected_amount" => "0.10000000"
                    "selected_currency" => "ETH"
                    "buyer_email" => "xxxxxx@xxxx.com"
                    "invoice" => "1234567"
                    "item_name" => "test"
                    "item_number" => "123456789"
                ]
            ]
      ]
      "message" => ""
]

```

### Make New Withdrawal :

[](#make-new-withdrawal-)

you can make new withdrawal request using withdraw call.

```
$balance = $btc_wallet->withdraw($address, $amount);

```

this will return either success response or error response if something went wrong.like below is the success response :

```
[
      "status": true,
      "response": "",
      "message": "Withdraw has been successfully sent. Your request will be confirmed within few minutes to over 10 minutes."
]

```

### Get Withdrawal History :

[](#get-withdrawal-history-)

you can get particular withdrawal history using get\_withdraw\_history call.

```
$balance = $btc_wallet->get_withdraw_history($withdraw_id);

```

this will return either success response or error response if something went wrong.like below is the success response :

```
[
      "status": true,
      "response": [
              0 => [
                  "withdraw_id": "your_withdrawal_id",
                  "txn_id": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                  "address": "16Fg*******zGasw5",
                  "amount": "250.00000000",
                  "fee": "0.00000000",
                  "total": "250.00000000",
                  "currency": "BTC",
                  "status": "Rejected",
                  "date_time": "21-01-2021 18:16:18"
              ]
      ],
      "message": ""
]

```

### Get All Withdrawal History :

[](#get-all-withdrawal-history-)

you can get particular withdrawal history using get\_withdraw\_history call.

```
$balance = $btc_wallet->get_all_withdraw_history();

```

this will return either success response or error response if something went wrong.like below is the success response :

```
[
      "status": true,
      "response": [
              0 => [
                  "withdraw_id": "your_withdrawal_id",
                  "txn_id": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                  "address": "16Fg*******zGasw5",
                  "amount": "250.00000000",
                  "fee": "0.00000000",
                  "total": "250.00000000",
                  "currency": "BTC",
                  "status": "Rejected",
                  "date_time": "21-01-2021 18:16:18"
              ],
              1 => [
                  "withdraw_id": "your_withdrawal_id",
                  "txn_id": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                  "address": "16Fg*******zGasw5",
                  "amount": "250.00000000",
                  "fee": "0.00000000",
                  "total": "250.00000000",
                  "currency": "BTC",
                  "status": "Rejected",
                  "date_time": "21-01-2021 18:16:18"
              ]
      ],
      "message": ""
]

```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/64a883f1f4db6f35671eeeb85838593e1b8257b291138d31eb39929cd1854405?d=identicon)[vinitha b](/maintainers/vinitha%20b)

---

Top Contributors

[![Bvini](https://avatars.githubusercontent.com/u/52347315?v=4)](https://github.com/Bvini "Bvini (9 commits)")

### Embed Badge

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

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

PHPackages © 2026

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