Organize scattered PHP files into scripts/ and tests/ directories
This commit is contained in:
9
tests/test_qr.php
Executable file
9
tests/test_qr.php
Executable file
@@ -0,0 +1,9 @@
|
||||
<?php$
|
||||
require '../vendor/autoload.php';$
|
||||
use chillerlan\QRCode\QRCode;$
|
||||
use chillerlan\QRCode\QROptions;$
|
||||
= new QROptions(['outputType' => QRCode::OUTPUT_MARKUP_SVG, 'eccLevel' => QRCode::ECC_L]);$
|
||||
= new QRCode();$
|
||||
= ->render('test');$
|
||||
file_put_contents('public/uploads/qr/test.svg', );$
|
||||
echo 'QR created';$
|
||||
Reference in New Issue
Block a user