Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Self-Hosted QR Code Generator

Security covered Maintenance fixes only 115 sites

This Drupal module allows you to create and manage QR codes directly within your website. It supports both online QR codes that redirect through your site and offline codes that embed data directly, with options for logos, custom colors, and export formats like PNG, SVG, and PDF.

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.
Drupal 10–11

Ask your assistant about Self-Hosted QR Code Generator

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • file Drupal core
  • rest Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
12
Tracked since
May 2025
Latest release
2 weeks ago
Releases (12 mo)
9 ▲ from 3
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.0.4 Stable 10–11 Sep 29, 2026
2.0.3 Stable 10–11 Apr 30, 2026
1.0.6 Stable 10–11 Apr 30, 2026
2.0.2 Stable 10–11 Apr 29, 2026
2.0.1 Stable 10–11 Apr 27, 2026
1.0.5 Stable 10–11 Apr 27, 2026
2.0.0 Stable 10–11 Apr 25, 2026
1.0.4 Stable 10–11 Mar 14, 2026
1.0.3 Stable 10–11 Mar 8, 2026
1.0.2 Stable 10–11 Aug 10, 2025