mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-17 23:21:13 +00:00
updated examples
This commit is contained in:
+3
-3
@@ -8,8 +8,8 @@ use chillerlan\QRCode\QRCode;
|
||||
|
||||
$qrImageOptions = new QRImageOptions;
|
||||
$qrImageOptions->pixelSize = 10;
|
||||
#$qrImageOptions->cachefile = 'example_image.png';
|
||||
$qrImageOptions->cachefile = 'example_image.png';
|
||||
|
||||
$im = (new QRCode('https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s', new QRImage($qrImageOptions)))->output();
|
||||
(new QRCode('https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s', new QRImage($qrImageOptions)))->output();
|
||||
|
||||
echo '<img src="'.$im.'" />';
|
||||
echo '<img src="'.$qrImageOptions->cachefile.'" />';
|
||||
|
||||
Reference in New Issue
Block a user