mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-17 20:11:15 +00:00
🔥 v6.0 first pass: PHP 8.2, remove deprecated elements, add type hints
This commit is contained in:
+2
-2
@@ -9,14 +9,14 @@
|
||||
|
||||
use chillerlan\QRCode\{QRCode, QROptions};
|
||||
use chillerlan\QRCode\Data\QRMatrix;
|
||||
use chillerlan\QRCode\Output\QROutputInterface;
|
||||
use chillerlan\QRCode\Output\QRFpdf;
|
||||
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
$options = new QROptions;
|
||||
|
||||
$options->version = 7;
|
||||
$options->outputType = QROutputInterface::FPDF;
|
||||
$options->outputInterface = QRFpdf::class;
|
||||
$options->scale = 5;
|
||||
$options->fpdfMeasureUnit = 'mm';
|
||||
$options->bgColor = [222, 222, 222];
|
||||
|
||||
Reference in New Issue
Block a user