2017 © Pedro PelĂĄez
 

silverstripe-module silverstripe-qr-generator

A module that renders a QR-Code for the current Page / DataObject

image

wernerkrauss/silverstripe-qr-generator

A module that renders a QR-Code for the current Page / DataObject

  • Wednesday, July 19, 2017
  • by wernerkrauss
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Silverstripe QR-Generator

Installation

composer require wernerkrauss/silverstripe-qr-generator, (*1)

Requirements

  • Silverstripe and Silverstripe CMS > 3.6, should work on 3.1 (untested)

How it works

At the moment this module only generates QR codes for absolute links to the current Page. It utilizes AbsoluteLink() to get the content to encode. The codes are cached as png files in /assets/qr/, (*2)

You can either include the code inline or as a source. Both will work out of the box:, (*3)

Inline QR Code

<img alt="Scan me" src="data:image/png;base64,$QRCodeBase64" />, (*4)

Linked Image

<img alt="Scan me" src="$QRCodeURL" />, (*5)

Todo

  • More pre-defined formats with wrapper, e.g. calendar item, address...
  • create a Subclass of ViewableData that wraps the generated QR code and can be modified in templates
  • make cache dir configurable
  • make name generation configurable; e.g. check for locale or subsites

The Versions

19/07 2017

dev-master

9999999-dev

A module that renders a QR-Code for the current Page / DataObject

  Sources   Download

MIT

The Requires

 

extension silverstripe

18/07 2017

0.0.1

0.0.1.0

A module that renders a QR-Code for the current Page / DataObject

  Sources   Download

MIT

The Requires

 

extension silverstripe