updated examples

This commit is contained in:
smiley
2015-12-10 03:39:30 +01:00
parent b70f028329
commit dfc2e708b1
2 changed files with 6 additions and 16 deletions
+2 -11
View File
@@ -4,16 +4,7 @@ require_once '../vendor/autoload.php';
use chillerlan\QRCode\Output\QRImage;
use chillerlan\QRCode\QRCode;
use chillerlan\QRCode\QRConst;
use chillerlan\QRCode\QROptions;
$qrOptions = new QROptions;
$qrOptions->output = new QRImage();
$im = (new QRCode('https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s', new QRImage))->output();
$qr = new QRCode('https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s', $qrOptions);
header('Content-type: image/png');
$im = $qr->output();
imagepng($im);
imagedestroy($im);
echo '<img src="'.$im.'" />';