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

ActiveLibrary[API Development](/categories/api)

singlewallet/singlewallet-php-sdk
=================================

PHP SingleWallet SDK

1.3.1(1y ago)118PHPPHP &gt;=7.1

Since May 31Pushed 1y ago1 watchersCompare

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

READMEChangelog (7)DependenciesVersions (8)Used By (0)

Requirements
------------

[](#requirements)

```
php >=7.1

```

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

[](#installation)

```
composer install singlewallet/singlewallet-php-sdk
```

Usage
-----

[](#usage)

```
$singeWallet = new SingleWallet($apiKey,
                                $secretKey,
                                $endpoint = null /*default mainnet endpoint*/,
                                $timeout = null /*default is 5 seconds*/
                                );
```

[how to create api key?](https://singlewallet-api.readme.io/reference/create-api-key)

### create new wallet

[](#create-new-wallet)

```
$wallet = $singeWallet->createWallet('tron', 'user #1534 wallet');
```

### create new invoice

[](#create-new-invoice)

```
$invoiceRequest = (new Invoice())
    ->setOrderName('Order Name Here') // required
    ->setOrderNumber("#54321") // optional, default = null
    ->setDescription("Order Description") // optional, default = null
    ->setAmount(5) // required, min=3
    ->setCurrencyCode('GBP') // optional, default = USD
    ->setLanguage('en') // optional, default = en
    ->setTtl(15) // optional, default = 15, min = 15, max = 10080
    ->setCallbackUrl("https://website.com/callback") // optional, default is project callback url
    ->setCancelUrl("https://website.com/cancel-landing-page") // optional, default is project cancel url
    ->setRedirectUrl("https://website.com/success-landing-page") // optional, default is project redirect url
    ->setCustomerEmail("name@email.com") // optional
    ->setPayload("this can hold anything to be sent with webhook"); // optional

$invoice = $singlewallet->createInvoice($invoiceRequest);
```

### validate address

[](#validate-address)

```
if($singeWallet->isValidAddress('tron', 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t')){
    // valid
}else{
    // invalid
}
```

### validate webhook payload

[](#validate-webhook-payload)

```
$signature = $_SERVER['HTTP_sw-signature'];
$payload = file_get_contents('php://input');

if($singeWallet->isValidPayload($payload, $signature)){
    // valid
}else{
    // invalid
}
```

### other methods

[](#other-methods)

```
$singeWallet->createWallet(string $network_code, string $label = null) : CreateWalletResponse;
$singeWallet->isValidPayload(string $payload, string $signature) : bool;
$singeWallet->isValidAddress(string $network_code, string $address) : bool;
$singlewallet->getAccountInfo() : AccountInformationResponse; // Basic account information
$singlewallet->getNetworkList() : NetworkResponse[]; // List of all available networks
$singlewallet->getWalletInfo(string $walletId_or_walletAddress) : WalletInformationResponse; // Get wallet information
$singlewallet->withdraw(string $network_code, string $address, float $amount) : WithdrawResponse; // Withdraw from your balance
$singlewallet->walletDeposits(string $walletId_or_walletAddress) : TransactionResponse[]; // Get list with last 1000 deposits to the selected wallet
$singlewallet->getTransaction(string $id) : TransactionResponse; // Get transaction details by id

$singlewallet->createInvoice(Invoice $invoice) : NewInvoiceResponse;
$singlewallet->cancelInvoice(string $invoiceId) : boolean; // Cancel invoice
$singlewallet->getInvoice(string $invoiceId) : InvoiceResponse; // Get invoice details
$singlewallet->getFiatCurrencies() : FiatCurrenciesResponse[]; // Get fiat currencies list
$singlewallet->getLanguageList() : LanguageResponse[]; // Get supported languages list
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

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

Every ~16 days

Recently: every ~7 days

Total

7

Last Release

616d ago

PHP version history (2 changes)1.0.0PHP &gt;=8.1

1.2.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/83bd880345697d0063a8867856d2d83c047a3d1def698c19a734e5d9ba49fbec?d=identicon)[731MY](/maintainers/731MY)

---

Top Contributors

[![731MY](https://avatars.githubusercontent.com/u/1791256?v=4)](https://github.com/731MY "731MY (13 commits)")

---

Tags

cryptousdtusdt-gatewayusdt-walletusdtpaywalletwallet-as-a-service

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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