Drupal is a registered trademark of Dries Buytaert
cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)!

qr_generator

58 sites Security covered
View on drupal.org

Overview

QR Generator lets you create, manage, and host QR codes directly in Drupal. It supports both online QR codes (managed redirects with optional expiration) and offline, self-contained QR codes that embed the target data directly and work without an internet connection.

Features

  • Multiple export formats: PNG, SVG, and PDF.
  • Branding with logos: embed an uploaded image or external URL into the center of the code.
  • Custom labels: add descriptive text (e.g., "Scan Me") below the code.
  • Color customization: full Hex control over foreground and background colors.
  • Error correction levels: Low, Medium, Quartile, High — automatically raised to High when a logo is used.
  • Optional expiration dates for online QR codes.
  • Per-entity export form at /admin/qr-code/export/{entityId}.

How online QR codes work

Scan QR code → lands on your Drupal site (/api/qr-code/{uuid}) → automatic redirect → destination page.

Which version should I use?

Quick answer: use 2.0.x for new sites on Drupal 10.3+ or 11.x. Use 1.0.x only if your site runs an older, unsupported Drupal release.

1.0.x 2.0.x (recommended) Drupal Core ^10 || ^11 (10.0 → 11.x) ^10.3 || ^11 PHP 8.1 or higher 8.3 or higher (tested on PHP 8.4) Architecture Procedural hooks, entity annotations OOP hook implementations (#[Hook]), attribute-based entity definitions Best for Sites on EOL Drupal 10.0 / 10.1 / 10.2 New installations and modern Drupal sites

Requirements

2.0.x (recommended):

  • PHP 8.3 or higher (fully tested on PHP 8.4)
  • Drupal Core ^10.3 || ^11

1.0.x:

  • PHP 8.1 or higher
  • Drupal Core ^10 || ^11

Dependencies

  • Drupal core modules: rest, serialization
  • endroid/qr-code (^5.0 || ^6.0) — QR code generation
  • setasign/fpdf (^1.8) — PDF export support

Installation

  1. Require the module via Composer: composer require drupal/qr_generator
  2. Enable the module via Drush (drush en qr_generator) or the Extend UI.
  3. Clear caches.

Usage — Online QR code with branding

  1. Go to Content → QR Codes.
  2. Add a QR code; set the redirect URL and (optionally) an expiry date.
  3. In the list view, click Export in the Operations column.
  4. Choose logo, colors, label, format, and size.
  5. Submit the form to download the file.

Usage — Offline (self-contained) QR code

  1. Go to Content → QR Codes.
  2. Click Generate Offline QR Code.
  3. Enter the target data (URL, email, or plain text) to embed.
  4. Configure branding and technical parameters.
  5. Download — the resulting code works independently of your Drupal site.

Activity

Total releases
11
First release
May 2025
Latest release
1 month ago
Release cadence
35 days
Stability
100% stable

Release Timeline

Releases

Version Type Release date
2.0.3 Stable Apr 30, 2026
1.0.6 Stable Apr 30, 2026
2.0.2 Stable Apr 29, 2026
2.0.1 Stable Apr 27, 2026
1.0.5 Stable Apr 27, 2026
2.0.0 Stable Apr 25, 2026
1.0.4 Stable Mar 14, 2026
1.0.3 Stable Mar 8, 2026
1.0.2 Stable Aug 10, 2025
1.0.1 Stable May 19, 2025
1.0.0 Stable May 19, 2025