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

ActiveLibrary

bogiesoft/qr-payment
====================

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

1.1.0(4y ago)3351MITPHPPHP &gt;=7.3

Since Jul 5Pushed 4y ago1 watchersCompare

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

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

bogiesoft/qr-payment
====================

[](#bogiesoftqr-payment)

[![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/bogiesoft/qr-payment), Install the latest version with composer

```
composer require bogiesoft/qr-payment

```

Usage
-----

[](#usage)

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

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

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

# To generate SCB QR-Payment
$scb = new bogiesoft\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.

Donation
--------

[](#donation)

If this project help you reduce time to develop, you can give me a coffee one cup :)

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

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

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

1769d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3bfadb7a013171bae429a7d9d32ab2e0b82edc4a6af9b34e2280e58ddb0a66e8?d=identicon)[bogiesoft](/maintainers/bogiesoft)

---

Top Contributors

[![bogiesoft](https://avatars.githubusercontent.com/u/6611635?v=4)](https://github.com/bogiesoft "bogiesoft (17 commits)")

---

Tags

PromptpayQR-Payment

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[pimcore/admin-ui-classic-bundle

171.1M46](/packages/pimcore-admin-ui-classic-bundle)[n1ebieski/ksef-php-client

PHP API client that allows you to interact with the API Krajowego Systemu e-Faktur

7228.4k](/packages/n1ebieski-ksef-php-client)[kittinan/php-promptpay-qr

PHP Library to generate QR Code payload for PromptPay

4950.4k](/packages/kittinan-php-promptpay-qr)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)[verbb/events

A full-featured plugin for event management and ticketing.

2311.7k](/packages/verbb-events)

PHPackages © 2026

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