PHPackages                             ifew/thai-promptpay-qr - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ifew/thai-promptpay-qr

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ifew/thai-promptpay-qr
======================

PHP generate PrompPay QR Code for pay on Thailand Banking application.

2836PHP

Since Feb 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ifew/PromptpayQR)[ Packagist](https://packagist.org/packages/ifew/thai-promptpay-qr)[ RSS](/packages/ifew-thai-promptpay-qr/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

PromptpayQR
===========

[](#promptpayqr)

PHP generate PrompPay QR Code for pay on Thailand Banking application

Install
=======

[](#install)

get library QR Generator

- run `composer install`

Usage
=====

[](#usage)

```

```

Function Reference
==================

[](#function-reference)

### setPromptpayType()

[](#setpromptpaytype)

set type of Promptpay ID

- 01 = Mobile Number
- 02 = Citizen ID

### setPromptpayID()

[](#setpromptpayid)

set Promptpay ID

- for Citizen ID, Using full length of Citizen (13 Characters) and only number such as `1234567890123`
- for Mobile ID, Start with "00" and Number of Country Code "66" and Mobile Phone Number exclude zero prefixes such as `0066831234567`

### setAmount()

[](#setamount)

set amount of money for pay

- if have amount, Using digit and 2 decimals such as `199.50`
- if not want to amount, Using `0`

### getQR()

[](#getqr)

Display QR Image

### generateQRwithChecksum()

[](#generateqrwithchecksum)

Display raw text of your pay code (this code use for generating to QR Code)

QR Code try on
==============

[](#qr-code-try-on)

-

Thank You
=========

[](#thank-you)

- Crc16CCIT

Reference
=========

[](#reference)

-
-
-

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1040714?v=4)[Chitpong Wuttanan (iFew)](/maintainers/ifew)[@ifew](https://github.com/ifew)

---

Top Contributors

[![ifew](https://avatars.githubusercontent.com/u/1040714?v=4)](https://github.com/ifew "ifew (21 commits)")

### Embed Badge

![Health badge](/badges/ifew-thai-promptpay-qr/health.svg)

```
[![Health](https://phpackages.com/badges/ifew-thai-promptpay-qr/health.svg)](https://phpackages.com/packages/ifew-thai-promptpay-qr)
```

###  Alternatives

[typo3/cms-impexp

TYPO3 CMS Import/Export - Tool for importing and exporting records using XML or the custom T3D format.

106.7M82](/packages/typo3-cms-impexp)

PHPackages © 2026

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