1
0
Fork 0

Adding dw2pdf version 2023-11-25 (48253f1).

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2024-12-01 20:29:19 +01:00
parent d4820b660a
commit 8e32b01eb0
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
999 changed files with 144285 additions and 0 deletions

View file

@ -0,0 +1,30 @@
# mPDF QR code library
QR code generating library with HTML/PNG/mPDF output possibilities.
[![Build Status](https://travis-ci.org/mpdf/qrcode.svg?branch=development)](https://travis-ci.org/mpdf/mpdf)
This is based on QrCode library bundled with mPDF until v8.0, made by Laurent Minguet. It is provided under LGPL license.
## Installation
```sh
$ composer require mpdf/qrcode
```
## Usage
```php
<?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
$data = $output->output($qrCode, 100, [255, 255, 255], [0, 0, 0]);
file_put_contents('filename.png', $data);
```