This allows the generation of a QRCode via a fieldtype, variable or twig filter.

QRCode Options

All instances of QRCode accept the following parameters:

  1. Data: the data for the code.
  2. Size: the size in pixels (default: 300)

Using QRCode

Fieldtype: In the fieldtype settings, you can use twig to dynamically get properties of the element that it is set on. eg on a user element:

    {"name":"{{ user.fullName }}"}

Twig variables:

    {{ craft.qrcode.generate(1234567890) }}

    {{ craft.qrcode.generate({"name":"John Smith"}, 100) }}

Twig Filters:

    {{ 1234567890|qrcode }}

    {{ {"name":"John Smith"}|qrcode(100) }}

Free

Package Name

To install this plugin, search for its package name on the Plugin Store and click “Install”.


Information

  • Version 1.0.2
  • Last Update 3/1/2019
  • Active Installs 7
  • Compatibility Craft 3
  • License MIT
  • Categories Templating, Fields

Report an issue