updated examples

This commit is contained in:
smiley
2016-12-17 22:23:14 +01:00
parent 03d5d92fbe
commit 0b177f0b69
3 changed files with 29 additions and 15 deletions
+3 -3
View File
@@ -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.'" />';