Skip to content
/ qrcode Public
forked from mpdf/qrcode

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

License

Notifications You must be signed in to change notification settings

nelb85/qrcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mPDF QR code library

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');

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 84.7%
  • PHP 15.3%