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(10mo ago)128.4k↓43.3%1MITPHPPHP ^8.0

Since Sep 3Pushed 10mo 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 1mo ago

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 89% of packages

Maintenance54

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

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

311d 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

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[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)[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.

412.3k](/packages/glennraya-xendivel)[dnetix/redirection

Library to connect with PlacetoPay Checkout service

17123.3k2](/packages/dnetix-redirection)

PHPackages © 2026

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