mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-05 11:27:41 +00:00
added example image
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
+6
-1
@@ -3,8 +3,13 @@
|
||||
require_once '../vendor/autoload.php';
|
||||
|
||||
use chillerlan\QRCode\Output\QRImage;
|
||||
use chillerlan\QRCode\Output\QRImageOptions;
|
||||
use chillerlan\QRCode\QRCode;
|
||||
|
||||
$im = (new QRCode('https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s', new QRImage))->output();
|
||||
$qrImageOptions = new QRImageOptions;
|
||||
$qrImageOptions->pixelSize = 10;
|
||||
#$qrImageOptions->cachefile = 'example_image.png';
|
||||
|
||||
$im = (new QRCode('https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s', new QRImage($qrImageOptions)))->output();
|
||||
|
||||
echo '<img src="'.$im.'" />';
|
||||
|
||||
Reference in New Issue
Block a user