mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-21 16:13:43 +00:00
🛀 fix examples
This commit is contained in:
+3
-2
@@ -11,6 +11,7 @@
|
||||
namespace chillerlan\QRCodeExamples;
|
||||
|
||||
use chillerlan\QRCode\{QRCode, QROptions};
|
||||
use chillerlan\QRCode\Common\EccLevel;
|
||||
|
||||
require_once __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
@@ -19,7 +20,7 @@ $data = 'https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s';
|
||||
$options = new QROptions([
|
||||
'version' => 5,
|
||||
'outputType' => QRCode::OUTPUT_STRING_TEXT,
|
||||
'eccLevel' => QRCode::ECC_L,
|
||||
'eccLevel' => EccLevel::L,
|
||||
]);
|
||||
|
||||
// <pre> to view it in a browser
|
||||
@@ -30,7 +31,7 @@ echo '<pre style="font-size: 75%; line-height: 1;">'.(new QRCode($options))->ren
|
||||
$options = new QROptions([
|
||||
'version' => 5,
|
||||
'outputType' => QRCode::OUTPUT_STRING_TEXT,
|
||||
'eccLevel' => QRCode::ECC_L,
|
||||
'eccLevel' => EccLevel::L,
|
||||
'moduleValues' => [
|
||||
// finder
|
||||
1536 => 'A', // dark (true)
|
||||
|
||||
Reference in New Issue
Block a user