PHPackages                             phumin/promptparse - 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. phumin/promptparse

ActiveLibrary[Payment Processing](/categories/payments)

phumin/promptparse
==================

All-in-one PHP library for PromptPay &amp; EMVCo QR Codes

1.0.2(11mo ago)41.9k—0%2MITPHPPHP &gt;=7.4

Since Apr 23Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/phoomin2012/promptparse-php)[ Packagist](https://packagist.org/packages/phumin/promptparse)[ RSS](/packages/phumin-promptparse/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

PromptParse PHP [![Packagist Version](https://camo.githubusercontent.com/e9e141220531ef0dc4c9f27534eecd7deb6d9bd11a1aa400f879dfc256c3b40f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068756d696e2f70726f6d70747061727365)](https://packagist.org/packages/phumin/promptparse) [![GitHub Actions Workflow Status](https://camo.githubusercontent.com/4307f720eddd1a0c110106ded3d83daa2b45b24866ab128c3d12e7f1200e2a6c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f70686f6f6d696e323031322f70726f6d707470617273652d7068702f6d61696e2e796d6c3f6272616e63683d6d61696e)](https://github.com/phoomin2012/promptparse-php/actions)
=======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#promptparse-php--)

"All-in-one PHP library for PromptPay &amp; EMVCo QR Codes"

No dependency. Just install and enjoy!

This is a PHP port of [maythiwat/promptparse](https://github.com/maythiwat/promptparse)

Features
========

[](#features)

- **Parse** — PromptPay &amp; EMVCo QR Code data strings into object
- **Generate** — QR Code data from pre-made templates (for example: PromptPay AnyID, PromptPay Bill Payment, TrueMoney, etc.)
- **Manipulate** — any values from parsed QR Code data (for example: transfer amount, account number) and encodes back into QR Code data
- **Validate** — checksum and data structure for known QR Code formats (for example: Slip Verify API Mini QR)

Usage
=====

[](#usage)

Parsing data and get value from tag
-----------------------------------

[](#parsing-data-and-get-value-from-tag)

```
use phumin\PromptParse\Parser;

// Example data
$ppqr = Parser::parse("000201010211...");

// Get Value of Tag ID '00'
$ppqr->getTagValue("00") // Returns '01'
```

Build QR data and append CRC tag
--------------------------------

[](#build-qr-data-and-append-crc-tag)

```
use phumin\PromptParse\Library\TLV;

// Example data
$data = [
  TLV::tag("00", "01"),
  TLV::tag("01", "11"),
  ...
];

// Set CRC Tag ID '63'
TLV::withCrcTag(TLV::encode($data), '63'); // Returns '000201010211...'
```

Generate PromptPay Bill Payment QR
----------------------------------

[](#generate-promptpay-bill-payment-qr)

```
use phumin\PromptParse\Generate;

$payload = Generate::billPayment("1xxxxxxxxxxxx", "300.0", "INV12345");

// TODO: Create QR Code from payload
```

Validate &amp; extract data from Slip Verify QR
-----------------------------------------------

[](#validate--extract-data-from-slip-verify-qr)

```
use phumin\PromptParse\Validate;

$data = Validate::slipVerify("00550006000001...");

list($sendingBank, $transRef) = $data;
// or
$sendingBank = $data[0];
$transRef = $data[1];

// TODO: Inquiry transaction from Bank Open API
```

Convert BOT Barcode to PromptPay QR Tag 30 (Bill Payment)
---------------------------------------------------------

[](#convert-bot-barcode-to-promptpay-qr-tag-30-bill-payment)

```
use phumin\PromptParse\Parser;

$botBarcode = Validate::parseBarcode("|310109999999901\r...");

$payload = $botBarcode->toQrTag30();

// TODO: Create QR Code from payload
```

References
==========

[](#references)

- [EMV QR Code](https://www.emvco.com/emv-technologies/qrcodes/)
- [Thai QR Payment Standard](https://www.bot.or.th/content/dam/bot/fipcs/documents/FPG/2562/ThaiPDF/25620084.pdf)
- [Slip Verify API Mini QR Data](https://developer.scb/assets/documents/documentation/qr-payment/extracting-data-from-mini-qr.pdf)
- [BOT Barcode Standard](https://www.bot.or.th/content/dam/bot/documents/th/our-roles/payment-systems/about-payment-systems/Std_Barcode.pdf)

License
=======

[](#license)

This project is MIT licensed (see [LICENSE.md](LICENSE.md))

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance50

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.4% 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 ~203 days

Total

3

Last Release

349d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2673599?v=4)[Phumin Chanthalert](/maintainers/phoomin2012)[@phoomin2012](https://github.com/phoomin2012)

---

Top Contributors

[![phoomin2012](https://avatars.githubusercontent.com/u/2673599?v=4)](https://github.com/phoomin2012 "phoomin2012 (17 commits)")[![wildangunawan](https://avatars.githubusercontent.com/u/35158077?v=4)](https://github.com/wildangunawan "wildangunawan (1 commits)")

---

Tags

qrcodeqrTrueMoneyPromptpayEMVCopromptpay-qremvco-qrthai-qr-paymentthai-qr-standard

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phumin-promptparse/health.svg)

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

###  Alternatives

[paypayopa/php-sdk

PHP SDK for PayPay Open Payment API

18279.6k3](/packages/paypayopa-php-sdk)[piggly/php-pix

Uma biblioteca para preparar e gerar o código Pix do Banco Central do Brasil.

113136.4k1](/packages/piggly-php-pix)[rikudou/skqrpayment

QR payment library for Slovak accounts

35796.2k1](/packages/rikudou-skqrpayment)[dfridrich/qr-platba

Generování QR Plateb a QR Faktur v PHP.

47270.8k1](/packages/dfridrich-qr-platba)[rikudou/czqrpayment

QR payment library for Czech accounts

29404.4k6](/packages/rikudou-czqrpayment)[rikudou/euqrpayment

QR payment library for European Union according to EPC standard version 2

18322.1k1](/packages/rikudou-euqrpayment)

PHPackages © 2026

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