PHPackages                             vansales/qr-payment - 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. vansales/qr-payment

ActiveLibrary[Payment Processing](/categories/payments)

vansales/qr-payment
===================

PHP Library to generate QR Code for QR-Payment and PromptPay

1.1.1(4y ago)61044MITPHPPHP &gt;=7.2

Since Nov 21Pushed 4y ago2 watchersCompare

[ Source](https://github.com/vansales/qr-payment)[ Packagist](https://packagist.org/packages/vansales/qr-payment)[ RSS](/packages/vansales-qr-payment/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (6)Used By (0)

vansales/qr-payment
===================

[](#vansalesqr-payment)

[![Build Status](https://camo.githubusercontent.com/c4e82df058daf1eacc1915eb1ea54633b09a0792041c95808667b987d4d1ada0/68747470733a2f2f7472617669732d63692e6f72672f76616e73616c65732f71722d7061796d656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vansales/qr-payment)[![Build Status](https://camo.githubusercontent.com/27f42024cc32c3828ae2d471c4129e232fc5f2278431799ce09d78bcaa102a5b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f76616e73616c65732f71722d7061796d656e742f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/vansales/qr-payment/build-status/master)[![Code Coverage](https://camo.githubusercontent.com/938f42ca91bd09ab260a4b0d3cf1452ae79ee99a2ea9340945a3bd64204688b3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f76616e73616c65732f71722d7061796d656e742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/vansales/qr-payment/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e0f2f0a79fce607a7e2bb07588dbae66d89175cd66d09a50e388358afe047f08/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f76616e73616c65732f71722d7061796d656e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/vansales/qr-payment/?branch=master)[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://opensource.org/licenses/MIT)

PHP Library to generate QR Code for QR-Payment and PromptPay

Requirement
-----------

[](#requirement)

- PHP 7.2+
- [GD Extension](http://php.net/manual/en/book.image.php) (For Generate QR Code)

Composer
--------

[](#composer)

This package available on [Packagist](https://packagist.org/packages/vansales/qr-payment), Install the latest version with composer

```
composer require vansales/qr-payment

```

Usage
-----

[](#usage)

```
# To generate PromptPay QR Code
$promptpay = new vansales\PromptPay();

// Grab parameter from URI
// ?amount=99.25&targer=0823456789
$amount = $_GET['amount'] ?? 120.05;
$target = $_GET['target'] ?? '0823456789';

// Display qrcode as PNG image
$promptpay->generateQrCode($target, $amount);

# To generate SCB QR-Payment
$scb = new vansales\ScbQr();

// Grab parameter from URI
// ?amount=99.25&ref_1=CUST1100&ref_2=INV1001&billerId=0115311040039475101
$amount = $_GET['amount'] ?? 0;
$ref_1 = $_GET['ref_1'] ?? 'none';
$ref_2 = $_GET['ref_2'] ?? 'none';

// Put &rawdata=yes to return rawdata
$rawdata = $_GET['rawdata'] ?? 'no';

# '0115311040039475101'; // Biller ID TEST1
$billerId = $_GET['billerId'] ?? '0115311040039475101';

// Display qrcode as PNG image
$scb->getqrcode($amount, $ref_1, $ref_2, $billerId);
```

Sample Generated PromptPay QR Code
----------------------------------

[](#sample-generated-promptpay-qr-code)

 [![](images/promptpay.png)](images/promptpay.png)

Contributing
------------

[](#contributing)

Feel free to contribute on this project, We'll be happy to work with you.

License
-------

[](#license)

This bundle is under the MIT license. For the full copyright and license information please view the LICENSE file that was distributed with this source code.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

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

Every ~73 days

Total

4

Last Release

1774d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/21befba7b465de51a10ef406d41b364da5c8ed638fc481e71e080077a3de3700?d=identicon)[monthon.n](/maintainers/monthon.n)

---

Top Contributors

[![jaycreate](https://avatars.githubusercontent.com/u/1081275?v=4)](https://github.com/jaycreate "jaycreate (30 commits)")

---

Tags

promptpayqr-paymentPromptpayQR-Payment

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vansales-qr-payment/health.svg)

```
[![Health](https://phpackages.com/badges/vansales-qr-payment/health.svg)](https://phpackages.com/packages/vansales-qr-payment)
```

###  Alternatives

[dfridrich/qr-platba

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

47270.8k1](/packages/dfridrich-qr-platba)[mjaschen/bezahlcode

BezahlCode Generator Library

128.1k](/packages/mjaschen-bezahlcode)

PHPackages © 2026

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