barcode
barcode copied to clipboard
Change "title" of QR
When using QR the result image filename is the first parameter, in this case the 'url'. How to sepparate the filename to the url which should redirect QR? It's possible?
$qr = new DNS2D();
$qr->setStorPath(base_path('public/storage/qrcodes/'));
$qr->getBarcodePNGPath($url, 'QRCODE', 50, 50);
$qr = new DNS2D();
$bytes = base64_decode($qr->getBarcodePNG($url, 'QRCODE', 50, 50));
file_put_contents(base_path('public/storage/qrcodes/my_filename.png'), $bytes);