26 lines
477 B
PHP
26 lines
477 B
PHP
<?php
|
|
|
|
use \chillerlan\QRCode;
|
|
|
|
class Preorderlogistics extends mfBaseModel {
|
|
|
|
|
|
public function generateCifQrPng() {
|
|
$qr_opts = new QROptions();
|
|
$qr_opts->outputType = QROutputInterface::GDIMAGE_PNG;
|
|
$qr = new QRCode($qr_opts);
|
|
try {
|
|
$png_data = $qr->render("https://fronk.at/");
|
|
} catch (Exception $ex) {
|
|
throw $ex;
|
|
}
|
|
|
|
if(!$png_data) {
|
|
echo "Kein png data!";exit;
|
|
}
|
|
|
|
var_dump($png_data);
|
|
exit;
|
|
|
|
}
|
|
} |