A PHP class to generate QR Codes using ImageMagick

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 4

Watchers: 1

Forks: 2

Open Issues: 0

v1.0 2013-12-12 09:41 UTC


Based on QRcode image PHP scripts version 0.50g (C)2000-2005, Y.Swetake


This program outputs a PNG FORMAT Imagick Image Object "QRcode model 2" You cannot use several functions of QRcode in this version. See README.txt .

This version supports QRcode model2 version 1-40.

This program requires PHP5.3x+ & Imagick.

QR Code data capacity[6]

  • Numeric only Max. 7,089 characters
  • Alphanumeric Max. 4,296 characters
  • Binary (8 bits) Max. 2,953 bytes
  • Kanji/Kana Max. 1,817 characters

Error correction capacity

  • Level L 7% of codewords can be restored.
  • Level M 15% of codewords can be restored.
  • Level Q 25% of codewords can be restored.
  • Level H 30% of codewords can be restored.

Data String Examples

  • URL


  • For Phone Numbers


  • For SMS (note: messages are limited to 160 characters on SMS


  • Text

    your text here

DoCoMo Types (Not always supported by Older and Non-DoCoMo phones

Example of block replacement

Example of Block Image

QR Code is registered trademarks of DENSO WAVE INCORPORATED in JAPAN and other countries.