PHPackages                             chriswest101/paynow - 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. chriswest101/paynow

ActiveLibrary[Payment Processing](/categories/payments)

chriswest101/paynow
===================

Easily generate a SG PayNow compliant QR code

v1.0.3(1y ago)915.5k↑35.6%8[1 issues](https://github.com/chriswest101/paynow/issues)[1 PRs](https://github.com/chriswest101/paynow/pulls)MITPHPPHP ^7.1|^8.0

Since Nov 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/chriswest101/paynow)[ Packagist](https://packagist.org/packages/chriswest101/paynow)[ Docs](https://github.com/chriswest101/paynow)[ RSS](/packages/chriswest101-paynow/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

SG PayNow QR Code
=================

[](#sg-paynow-qr-code)

Singapore Paynow QR Code generator for PHP.

Usage Instructions
------------------

[](#usage-instructions)

**1. Install via composer**

```
$ composer require chriswest101/paynow

```

**2. Publish the assets**

```
$ php artisan vendor:publish --provider="Chriswest101\Paynow\PaynowServiceProvider" --tag=public --force

```

**3. Add the using**

```
use Chriswest101\Paynow\Facades\Paynow;
```

**4. Create PayNow QR Code**

As encoded base64image

*Dynamic*

```
Paynow::generateDynamic(
    100.00,
    false,
    "O123456",
    (new DateTime())->modify("+ 1 hour"),
    "Clothing Company Pte Ltd",
    "SG",
    "Singapore",
    "2020111104G",
    null,
    true
);
```

As paynow string

```
Paynow::generateDynamic(
    100.00,
    false,
    "O123456",
    (new DateTime())->modify("+ 1 hour"),
    "Clothing Company Pte Ltd",
    "SG",
    "Singapore",
    "2020111104G",
    null,
    false
);
```

*Static*

```
Paynow::generateStatic(
    "Clothing Company Pte Ltd",
    "SG",
    "Singapore",
    "2020111104G",
    null,
    true
);
```

As paynow string

```
Paynow::generateStatic(
    "Clothing Company Pte Ltd",
    "SG",
    "Singapore",
    "2020111104G",
    null,
    false
);
```

Potential usecases:
-------------------

[](#potential-usecases)

Dynamically generating payment QR codes on e-commerce or donation pages that allow tracking of payments via reference codes.

Can be used in conjunction with Bank APIs to detect resolved payments.

To do
-----

[](#to-do)

Incorporate QR generation into the PaynowQR class with logo / branding options

Credits
-------

[](#credits)

Original code referenced from:

See also:

Developed by Chris West ()

Was looking around for various ways to implement dynamic SGQR codes for payment over PHP, however couldn't find any that worked.

Feel free to report any issues and feature requests!

###  Health Score

38

—

LowBetter than 84% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 96.3% 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 ~429 days

Total

4

Last Release

716d ago

PHP version history (2 changes)v1.0.0PHP ^7.1

v1.0.2PHP ^7.1|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9be96ab556403c60e394c442a48bd68db406304cf1620feed3aa0fae125c7048?d=identicon)[chriswest101](/maintainers/chriswest101)

---

Top Contributors

[![chriswest101](https://avatars.githubusercontent.com/u/10584301?v=4)](https://github.com/chriswest101 "chriswest101 (26 commits)")[![hariidavinci](https://avatars.githubusercontent.com/u/161912851?v=4)](https://github.com/hariidavinci "hariidavinci (1 commits)")

---

Tags

paynowchriswest101

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/chriswest101-paynow/health.svg)

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

###  Alternatives

[laraveldaily/laravel-invoices

Missing invoices for Laravel

1.5k1.3M4](/packages/laraveldaily-laravel-invoices)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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