Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
# INTRODUCTION
A render element for rendering a simple QR-code with the option to:
* add a logo info the rendered qr-code
* make the qr code downloadable as a png file
* change background color
* change foreground color
* define a fixed size
Usage example:
$element = [
'#type' => 'easyqrcodejs',
'#value' => 'Some text or url to encode into a QR code',
'#width' => 256,
'#height' => 256,
'#foreground' => '#000000',
'#background' => '#ffffff',
'#logo' => 'path/to/logo.png'
'#download' => 'qr-code.png',
];
Uses the easyqrcodejs js libary (https://github.com/ushelp/EasyQRCodeJS/)
# INSTALLATION
* Install as you would normally install a contributed Drupal module. Visit
https://www.drupal.org/node/1897420 for further information.
# CONFIGURATION
none
Supporting organizations:
Project information
- Module categories: Content Display, Developer Tools
- 338 sites report using this module
- Created by kriboogh on , updated
- Drupal 10 is here!
This module is D10 ready.
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
1.0.1
released 18 July 2023
Works with Drupal: ^9 || ^10
✓ Recommended by the project’s maintainer.
Bug fixes
Install: