PHPackages                             anonwallet/anonwallet-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. [Payment Processing](/categories/payments)
4. /
5. anonwallet/anonwallet-php

ActiveLibrary[Payment Processing](/categories/payments)

anonwallet/anonwallet-php
=========================

Official PHP SDK for AnonWallet anonymous cryptocurrency payment gateway

02PHP

Since Aug 2Pushed 3y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (1)Used By (0)

anonwallet-php
==============

[](#anonwallet-php)

Official PHP SDK of AnonWallet.Net Anonymous Cryptocurrency Payment Gateway

Install guide
-------------

[](#install-guide)

You can install anonwallet plugin using composer in your project using:

```
composer require anonwallet/anonwallet-php

```

Usage
-----

[](#usage)

Include namespace of package wherever you want to use this library

```
include_once './vendor/autoload.php';
use AnonWallet\AnonWallet;

$api_key = 'Your merchant API Key';

$obj = new AnonWallet($api_key);

```

Get Balance of specific coin
----------------------------

[](#get-balance-of-specific-coin)

```

$currency = 'BTC'; //If currency parameter is not specified, default currency is BTC

$balance = $obj->balance($currency);

```

Get balances of all coins
-------------------------

[](#get-balances-of-all-coins)

```
$balances = $obj->balances();

```

Generate Callback Address
-------------------------

[](#generate-callback-address)

```
$currency = 'BTC'; //If currency parameter is not specified, default currency is BTC
$forward_address = '1Btcdemoforwardaddress'; // If forward address is specified, the funds are automatically send to this address after the transaction is confirmed
$ipn_url = 'Yourdomain.com/handle_payment'; // If IPN url is specified, notifications of payment status changes is sent to this domain
$label = 'John Doe'; //Specify label for your internal system tracking

$address = $obj->callback_address($currency, $forward_address, $ipn_url, $label);

```

Create new Invoice
------------------

[](#create-new-invoice)

```
$currency = 'BTC'; //If currency parameter is not specified, default currency is BTC
$amount = '0.01'; //Numeric double amount required to be received on the invoice
$forward_address = '1Btcdemoforwardaddress'; // If forward address is specified, the funds are automatically send to this address after the transaction is confirmed
$ipn_url = 'Yourdomain.com/handle_payment'; //If IPN url is specified, notifications of payment status changes is sent to this domain
$invoice_id = '112'; // Your internal system tracking invoice id
$hosted_invoice = true; // true or false, if boolean true is specified, the invoice will have a hosted payment page on AnonWallet gateway
$product_title = 'My product title';
$product_description = 'My product description';
$success_url = 'Yourdomain.com/success'; //URL where the buyer will redirect when it cancel the hosted invoice
$cancel_url = 'Yourdomain.com/cancel'; //URL where the buyer will redirect when it cancel the hosted invoice
$buyer_email = 'buyer@email.com' //Specify the buyer email

$invoice = $obj->create_invoice($currency, $amount, $forward_address, $ipn_url, $invoice_id, $hosted_invoice, $product_title, $product_description, $success_url, $cancel_url, $buyer_email);

```

Create new Withdrawal request
-----------------------------

[](#create-new-withdrawal-request)

```
$currency = 'BTC'; //If currency parameter is not specified, default currency is BTC
$amount = '0.01'; // Numeric double amount to be send from your account
$address = '1Btcdemowithdrawaladdress'; //The receiver address
$ipn_url = 'Yourdomain.com/handle_withdraw'; // URL where

$withdraw = $obj->create_withdrawal($currency, $amount, $address, $ipn_url);

```

**You can find more references on our API Documentation ()**

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

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/054e63e953f94fd2ce80eb74e62a59cb3908bedc3f9ab3035dd08d6a29ac3233?d=identicon)[anonwalletnet](/maintainers/anonwalletnet)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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