🛀 data mode rework

This commit is contained in:
codemasher
2020-11-21 02:43:14 +01:00
parent 4968063fb3
commit 9f5d0bc060
26 changed files with 853 additions and 789 deletions
+4 -1
View File
@@ -25,9 +25,12 @@ $options = new QROptions([
'imageBase64' => false,
]);
$qrcode = new QRCode($options);
$qrcode->addByteSegment($data);
header('Content-type: image/png');
$qrOutputInterface = new QRImageWithText($options, (new QRCode($options))->getMatrix($data));
$qrOutputInterface = new QRImageWithText($options, $qrcode->getMatrix());
// dump the output, with additional text
echo $qrOutputInterface->dump(null, 'example text');