ez projects / ezqrcode

Attention please: Due to restructuring legacy services, the eZ Projects service is going to be discontinued. All the current repositories will be migrated to a new platform. More details will be announced soon.

QR Code

UNIX name Owner Status Version Compatible with
ezqrcode Bertrand Dunogier alpha 1.0 4.x
This extension provides an API as well as the ezpublish features to generate QR Codes based on content.

What are QR Codes

QR Codes are two dimensional bar codes, created by Denso-Wave in 1994 (thank you Wikipedia). These codes can contain a large variety of data: URLs, vCards, geographical data, etc, and have been picked up by google for Android based devices. As an example, you can see on that any downloadable file has a QR code image. It can be scanned using a hand held device, which will then propose an action based on the decrypted data: open an URL, install an app, etc.

This extension

Google chart API

The current implementation only uses the google chart API. This very simple API allows you to provide an URL with a few fields regarding the desired chart, and get an image in return. While this is far from perfect when it comes to data privacy, it does the job.


ezqrcode is very simple at the moment. It has a base class, eZQRCode, that can be used to set all the available parameters: size, error correction, data, etc. Based on this, the class will return the URL for the image on
This class is currently only implemented in a template operator named qrcode. This operator accepts the image size as a parameter:

{""|qrcode( '200x200' )}

In the latest SVN revision, the extension has native support for email and url datatypes. Just pass the datatype directly to the operator:

{$node.data_map.url|qrcode(  '200x200' )}
{$|qrcode(  '200x200' )}

What's next

An operator only based approach is of course a bit rude. But I have a few plans.

Then it would probably be a good idea to create a qrcode datatype, but this datatype wouldn't contain data on its own besides configuration (size, error correction level, etc), but would link to other attributes from the same object.

Suggestions and feedback are of course more than welcome.


Average rating 5.00 by 1 reviewers.