Skip to content

dereuromark/cakephp-qrcode

Repository files navigation

CakePHP QrCode Plugin

CI Coverage Status PHPStan Latest Stable Version Minimum PHP Version License Total Downloads

QrCode plugin for CakePHP applications.

This branch is for use with CakePHP 5.0+. For details see version map.

Motivation

Wraps chillerlan/php-qrcode/ library to have an easy to use out-of-the-box interface for most common QR codes.

Features

Supports:

  • base64encoded (default)
  • svg/png as controller action generated on-the-fly image

Install/Setup

Installing the Plugin is pretty much as with every other CakePHP Plugin.

Install using Packagist/Composer:

composer require dereuromark/cakephp-qrcode

The following command can enable the plugin:

bin/cake plugin load QrCode

or manually add it to your Application class.

Usage

See the Docs for details.

Demo

See https://sandbox.dereuromark.de/sandbox/qr-code-examples