PHPackages                             vocolboy/php-emv-qrcode - 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. vocolboy/php-emv-qrcode

ActiveLibrary[Payment Processing](/categories/payments)

vocolboy/php-emv-qrcode
=======================

Generate PromptPay/TrueMoney/VietQR/PayMaya QRCode

2.2.1(11mo ago)229.4k↓75.4%1MITPHPPHP ^8.0

Since Sep 3Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/vocolboy/php-emv-qrcode)[ Packagist](https://packagist.org/packages/vocolboy/php-emv-qrcode)[ RSS](/packages/vocolboy-php-emv-qrcode/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (8)Used By (0)

php-emv-qrcode [![Packagist Downloads](https://camo.githubusercontent.com/3940db453bd80987f969f825058c62e3371ca88b140dce16f0e0d0968ef98fee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766f636f6c626f792f7068702d656d762d7172636f6465)](https://camo.githubusercontent.com/3940db453bd80987f969f825058c62e3371ca88b140dce16f0e0d0968ef98fee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766f636f6c626f792f7068702d656d762d7172636f6465)
===============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#php-emv-qrcode-)

Introduction
============

[](#introduction)

Support QRCode generator

- TH ( TrueMoney / PromptPay )
- VN ( VietQR )
- PH ( GCash / PayMaya )

Install
=======

[](#install)

```
composer require vocolboy/php-emv-qrcode
```

Usage
=====

[](#usage)

```
$promptpayId = '0912345678';
$amount = '100';

echo PromptPay::generate($promptpayId, $amount);
//00020101021229370016A000000677010111011300669123456785802TH53037645406100.00630492CB

$gcashId = 'DWQM4TK3JDO26GF27'
echo GCashLib::generate(payeeUserId: $gcashId);

```

Utils
=====

[](#utils)

```
echo EMV::generatePHPDataByQRCode("00020101021229370016A000000677010111011300669123456785802TH53037645406100.00630492CB");

#output
string(506) "$data = [
    EMV::calculateString('00', '01'),
    EMV::calculateString('01', '12'),
    EMV::calculateString(
        '29',
        EMV::serialize([
            EMV::calculateString('00', 'A000000677010111'),
            EMV::calculateString('01', '0066912345678'),
        ])
    ),
    EMV::calculateString('58', 'TH'),
    EMV::calculateString('53', '764'),
    EMV::calculateString('54', '100.00'),
    EMV::calculateString('63', '92CB'),
];

$data[] = EMV::calculateString('63', EMV::crc16($data));"
```

Testing
=======

[](#testing)

```
./vendor/bin/pest

#docker
docker run -it --rm -v $(pwd):/root -w /root sineverba/php8xc:1.7.0 composer install && vendor/bin/pest
```

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance50

Moderate activity, may be stable

Popularity30

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~234 days

Recently: every ~189 days

Total

7

Last Release

357d ago

Major Versions

1.1.0 → 2.0.02023-06-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6601427?v=4)[voco](/maintainers/vocolboy)[@vocolboy](https://github.com/vocolboy)

---

Top Contributors

[![vocolboy](https://avatars.githubusercontent.com/u/6601427?v=4)](https://github.com/vocolboy "vocolboy (14 commits)")

---

Tags

paymayaTrueMoneyPromptpayvietqr

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/vocolboy-php-emv-qrcode/health.svg)

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

###  Alternatives

[glennraya/xendivel

A Laravel package to easily integrate Xendit payment gateway. It supports credit and debit cards, and e-wallet payments and custom invoices, queued notifications, webhook listeners and more.

442.7k](/packages/glennraya-xendivel)[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.2k](/packages/msilabs-bkash)

PHPackages © 2026

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