mpdf/qrcode

QR code generator for mPDF

Maintainers

Details

github.com/mpdf/qrcode

Source

Issues

Installs: 8 605

Dependents: 4

Suggesters: 0

Stars: 2

Watchers: 0

Forks: 0

Open Issues: 1

Language:HTML

v1.0.0 2019-01-16 18:40 UTC

README

QR code generating library with HTML/PNG/mPDF output possibilities.

Build Status

This is based on QrCode library bundled with mPDF until v8.0, made by Laurent Minguet. It is provided under LGPL license.

Installation

$ composer require mpdf/qrcode

Usage

<?php

use Mpdf\QrCode\QrCode;
use Mpdf\QrCode\Output;

$qrCode = new QrCode('Lorem ipsum sit dolor');

$output = new Output\Png();

// Save black on white PNG image 100px wide to filename.png
$output->output($qrCode, 100, [255, 255, 255], [0, 0, 0], 'filename.png');