PHPackages                             opensource/testplugin - 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. opensource/testplugin

ActiveLibrary

opensource/testplugin
=====================

Demo Package

016PHP

Since Sep 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Bvini/testapipackage)[ Packagist](https://packagist.org/packages/opensource/testplugin)[ RSS](/packages/opensource-testplugin/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

opensource-testplugin
=====================

[](#opensource-testplugin)

testplugin for laravel

installation guide.
-------------------

[](#installation-guide)

you can install testplugin plugin using composer in laraval :

```
composer require opensource/testplugin

```

Register service provider to your config/app.php like below :
-------------------------------------------------------------

[](#register-service-provider-to-your-configappphp-like-below-)

Add `Opensource\TestPlugin\TestPluginServiceProvider::class ` line at bottom in `providers` array

```
'providers' => [
   Opensource\TestPlugin\TestPluginServiceProvider::class,
]

'aliases' => [
   'TestPluginData' => Opensource\TestPlugin\TestPlugin::class,
]

```

Publish configuration file to config folder using following command:
--------------------------------------------------------------------

[](#publish-configuration-file-to-config-folder-using-following-command)

```
php artisan vendor:publish --tag=test_package_config

```

Set credentials of all coins which you want to use from coinwerx in config/test\_plugin.php like :
--------------------------------------------------------------------------------------------------

[](#set-credentials-of-all-coins-which-you-want-to-use-from-coinwerx-in-configtest_pluginphp-like-)

If this file not exist then create and set configuration like this. [How to get Private key and Public key ?](https://demozab.com/coinwerx/userpanel/public/getKeyList)

```
return [

   'public_key' => '',

   'private_key' => ''
];

```

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

[](#usage-of-library-)

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

```
use TestPluginData;

```

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

```
$btc_wallet = new TestPluginData('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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

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 (18 commits)")

### Embed Badge

![Health badge](/badges/opensource-testplugin/health.svg)

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

PHPackages © 2026

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