New Xtra: QR Tab

Me again! :slight_smile:

I have used some of the lessons learned on my last package build (ShortLink Manager) and have applied them to a new package - QR Tab!

QR Tab is a MODX Extra that adds a QR Code tab to the manager resource editor, generating fully scannable, branded QR codes for any resource’s live URL — entirely server-side with no external API dependencies.

Available on GitHub for anyone interested in taking it for a spin: GitHub - robcarey/MODX-QRTab-Xtra: A MODX Extra that adds a QR Code tab to the resource editor · GitHub

Features

  • Server-side generation — uses the bundled chillerlan/php-qrcode library; no external APIs

  • Dual output — vector SVG and rasterised PNG with one-click download

  • Branded colours — independent control over background, data pattern, finder border, and finder eye

  • Centre logo overlay — SVG, PNG, or JPG; error correction auto-elevates to High

  • Dot styles — square or circular modules with adjustable radius

  • Gradient fills — diagonal, horizontal, vertical, or radial

  • Anti-aliasing — smooth or crisp rendering per dot style

  • Smart caching — skips regeneration when the resource URL is unchanged

  • Force regenerate — manual button bypasses cache at any time

  • Configurable output — custom file prefix, output directory, and pixel dimensions (200–2000px)

  • Template filtering — tab only appears on resources using specified template IDs

Requirements

Requirement Details
MODX Revolution 2.6+
PHP 7.2+ (8.x recommended)
ext-gd Optional — required for PNG generation
ext-imagick Optional — for SVG logo rasterisation in PNG output
Node.js + sharp-cli Optional — high-quality SVG-to-PNG conversion (falls back to GD)
2 Likes