PHPackages                             mrthebank/truewallet - 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. mrthebank/truewallet

ActiveLibrary

mrthebank/truewallet
====================

PHP Package - TrueWallet Gift Code

1.0(4y ago)113MITPHPPHP &gt;=5.6

Since Jun 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/MrTheBank/truewallet-gift)[ Packagist](https://packagist.org/packages/mrthebank/truewallet)[ RSS](/packages/mrthebank-truewallet/feed)WikiDiscussions master Synced 1mo ago

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

Installation
============

[](#installation)

```
composer require mrthebank/truewallet

```

Usage
=====

[](#usage)

```
use MrTheBank\TrueWallet\TrueWallet;

$tw = new TrueWallet('YOUR PHONE NUMBER');
$ret = $tw->Redeem('https://gift.truemoney.com/campaign/?v=XXXXXXXXXXXXXXXXXX');

if ($ret['status']['code'] != 'SUCCESS' && $ret['data']['voucher']['member'] == '1') {
    echo $ret['data']['voucher']['amount_baht']; // X.XX
} else {
    echo $ret['status']['message'];
    echo $ret['status']['code'];
}
```

If you want to see full response then do

```
use MrTheBank\TrueWallet\TrueWallet;

$tw = new TrueWallet('YOUR PHONE NUMBER');
$ret = $tw->Redeem('https://gift.truemoney.com/campaign/?v=XXXXXXXXXXXXXXXXXX');

echo '';
print_r($ret);
echo ''
```

Reference
=========

[](#reference)

[https://github.com/Mixzis/truewalletgift-php/blob/main/rb\_tw.class.php](https://github.com/Mixzis/truewalletgift-php/blob/main/rb_tw.class.php)

License
=======

[](#license)

The MIT License (MIT)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

1786d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/aad580bb885ecb663828ee30f1fe273f0fc96323a82f148ffde404e4b715c3e5?d=identicon)[MrTheBank](/maintainers/MrTheBank)

---

Top Contributors

[![MrTheBank](https://avatars.githubusercontent.com/u/16158569?v=4)](https://github.com/MrTheBank "MrTheBank (3 commits)")

### Embed Badge

![Health badge](/badges/mrthebank-truewallet/health.svg)

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

PHPackages © 2026

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