Extension:QRLite

Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
QRLite
Release status: stableCategory:Stable extensions
Implementation MyWiki Category:Personalization extensions
Description Generates QR codes in .png and .svg format on the fly
Author(s) Simon Heimler, Alexander Gesinn
Maintainer(s) gesinn.it
Latest version 0.3.4 (2020-01-26)
MediaWiki 1.27+Category:Extensions with manual MediaWiki version
PHP 5.2+
Database changes No
Composer gesinn-it/qrliteCategory:Extensions supporting Composer
License GNU General Public License 2.0 or later
Download Category:Extensions in GitHub version control
Category:All extensions

The QRLite extension allows to generate QR codes as .png and .svg images. It generates and embeds them "on the fly" and does not store them as MediaWiki images.

Installation

  • Ensure that the GD PHP extension is installed (e.g. on Debian issue: apt install php-gd and then restart apache, if not already installed).
  • Download, extract and place the file(s) in a directory called QRLite in your extensions/ folder.
  • Only when installing from Git, run Composer to install PHP dependencies, by issuing composer install --no-dev in the extension directory. (See T173141 for potential complications.)Category:Extensions requiring Composer with git
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'QRLite' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Instead of downloading the zip archive you may also check this extension out via Git:

git clone https://github.com/gesinn-it/QRLite.git

Usage

Use the #qrlite parser function.

Available Parameters
  • format - svg or png. Default is png
  • size - A number that defines the overall QR code image size. Default is 6.
  • margin - A number, default is 0
  • ecc - A number ranging from 0 to 4 that defines the error correction level. Default is 2.

Examples

SVG Format (scalable)

{{#qrlite:{{fullurl:{{FULLPAGENAME}}}}|format=svg|size=5|ecc=1|margin=0}}

PNG Format

{{#qrlite:{{fullurl:{{FULLPAGENAME}}}}|format=png|size=5|margin=0}}
Category:Extensions by gesinn.it
Category:All extensions Category:Extensions by gesinn.it Category:Extensions in GitHub version control Category:Extensions included in semantic::core Category:Extensions requiring Composer with git Category:Extensions supporting Composer Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:GPL licensed extensions Category:ParserFirstCallInit extensions Category:Personalization extensions Category:Stable extensions