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

ActiveLibrary

gearosv2/paynow
===============

Easily generate a SG PayNow compliant QR code

v1.0.1.6(8mo ago)036MITPHPPHP ^7.1|^8.0

Since Sep 11Pushed 8mo agoCompare

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

READMEChangelog (6)Dependencies (4)Versions (7)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 gearosv2/paynow

```

**2. Publish the assets**

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

```

**3. Add the using**

```
use gearosv2\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. It can be used in open source invoicing system Invoice Ninja.

Credits
-------

[](#credits)

Original code referenced from:

PHP library and composer from Chris West

See also:

Developed by Chris West ()

Was looking around for various ways to implement dynamic SGQR codes for payment over PHP within the Lavarel system that is being used to developer Invoice Ninja. I found Chris's work and worked on it to get it working.

Feel free to report any issues and feature requests!

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance61

Regular maintenance activity

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.6% 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 ~218 days

Recently: every ~273 days

Total

6

Last Release

243d ago

PHP version history (2 changes)v1.0.1.1PHP &gt;=7.1

v1.0.1.4PHP ^7.1|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/c32b5530911161ddb40f303c042cb9ae21323ef1b53e7895443cbf79630c660a?d=identicon)[gearosv2](/maintainers/gearosv2)

---

Top Contributors

[![chriswest101](https://avatars.githubusercontent.com/u/10584301?v=4)](https://github.com/chriswest101 "chriswest101 (20 commits)")[![gearosv2](https://avatars.githubusercontent.com/u/41443594?v=4)](https://github.com/gearosv2 "gearosv2 (16 commits)")

---

Tags

paynowchriswest101

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)

PHPackages © 2026

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