mpdf/qrcode

QR code generator for mPDF

Maintainers

Details

github.com/mpdf/qrcode

Source

Issues

Installs: 318 990

Dependents: 14

Suggesters: 0

Security: 0

Stars: 17

Watchers: 2

Forks: 5

Open Issues: 5

Language:HTML

v1.1.1 2021-01-12 18:16 UTC

This package is auto-updated.

Last update: 2021-10-12 19:56:53 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');