mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-19 01:50:04 +00:00
:octocat: examples cleanup
This commit is contained in:
+3
-5
@@ -8,8 +8,6 @@
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
namespace chillerlan\QRCodeExamples;
|
||||
|
||||
use chillerlan\QRCode\{QRCode, QROptions};
|
||||
use chillerlan\QRCode\Data\QRMatrix;
|
||||
use chillerlan\QRCode\Common\EccLevel;
|
||||
@@ -17,8 +15,6 @@ use PHPUnit\Util\Color;
|
||||
|
||||
require_once __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
$data = 'https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s';
|
||||
|
||||
$options = new QROptions([
|
||||
'version' => 7,
|
||||
'outputType' => QRCode::OUTPUT_STRING_TEXT,
|
||||
@@ -60,4 +56,6 @@ $options = new QROptions([
|
||||
],
|
||||
]);
|
||||
|
||||
echo (new QRCode($options))->render($data);
|
||||
echo (new QRCode($options))->render('https://www.youtube.com/watch?v=dQw4w9WgXcQ');
|
||||
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user