Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

QR Code Formatter

Security covered Maintenance fixes only 22 sites

This module provides a field formatter for link fields that displays the link's URL as a QR code image. It uses a PHP library to generate an SVG QR code directly within the rendered output.

QR Code Formatter is a simple module that defines a Field Formatter for Links to be displayed as a QR image.

Setup

  1. Install the module as you would normally install a contributed Drupal module or theme via Composer.
    composer require drupal/qr_code_formatter
  2. Go to display settings of any entity. For example:(/admin/structure/types/manage/basic_page/display)
  3. Look for the link type field, in the Format column you should see QR Code Formatter

The module uses the chillerlan/php-qrcode to generate an SVG with the QR. The SVG is placed inline. The module doesn't deal with caching as it delegates this to the place where it is used.

See an example:

Drupal 10–11

Ask your assistant about QR Code Formatter

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

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jan 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.0.0 Stable 10–11 Jan 22, 2025