This module provides a render element to display QR codes with customizable options like adding a logo, setting colors, defining size, and enabling download as a PNG.
# 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
Ask your assistant about EasyQRCodeJS
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.