|
|
@@ -10,20 +10,24 @@ namespace chillerlan\QRCodeExamples;
|
|
|
|
|
|
use chillerlan\QRCode\{QRCode, QROptions};
|
|
|
use chillerlan\QRCode\Common\EccLevel;
|
|
|
+use chillerlan\QRCode\Data\QRMatrix;
|
|
|
|
|
|
require_once __DIR__.'/../vendor/autoload.php';
|
|
|
|
|
|
-$data = 'https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s';
|
|
|
+$data = 'https://github.com';
|
|
|
|
|
|
$options = new QROptions([
|
|
|
- 'version' => 7,
|
|
|
- 'eccLevel' => EccLevel::H,
|
|
|
- 'imageBase64' => false,
|
|
|
- 'addLogoSpace' => true,
|
|
|
- 'logoSpaceWidth' => 13,
|
|
|
- 'logoSpaceHeight' => 13,
|
|
|
- 'scale' => 5,
|
|
|
- 'imageTransparent' => false,
|
|
|
+ 'version' => 5,
|
|
|
+ 'eccLevel' => EccLevel::H,
|
|
|
+ 'imageBase64' => false,
|
|
|
+ 'addLogoSpace' => true,
|
|
|
+ 'logoSpaceWidth' => 13,
|
|
|
+ 'logoSpaceHeight' => 13,
|
|
|
+ 'scale' => 6,
|
|
|
+ 'imageTransparent' => false,
|
|
|
+ 'drawCircularModules' => true,
|
|
|
+ 'circleRadius' => 0.45,
|
|
|
+ 'keepAsSquare' => [QRMatrix::M_FINDER, QRMatrix::M_FINDER_DOT],
|
|
|
]);
|
|
|
|
|
|
$qrcode = new QRCode($options);
|