summaryrefslogtreecommitdiff
path: root/vendor/chillerlan/php-qrcode/examples/imagick.php
diff options
context:
space:
mode:
authorwn_ <invalid@email.com>2024-11-21 17:27:15 +0000
committerwn_ <invalid@email.com>2024-11-21 17:34:32 +0000
commit64a36970d6c4a90c1ab738e0b859b4fffa18c603 (patch)
treebf385b721be5b1c6067040ce65f0b892bb1c9225 /vendor/chillerlan/php-qrcode/examples/imagick.php
parent1e14fc0fd957cea2ab176d5132c3fe5329991c17 (diff)
Bump 'chillerlan/php-qrcode' to 5.0.x.
* Maintains PHP `7.4` compatibility and adds PHP `8.4` compatibility * The `4.4.x` branch does the same, but I didn't see any reason not to go to `5.0.x`. * https://github.com/chillerlan/php-qrcode/releases
Diffstat (limited to 'vendor/chillerlan/php-qrcode/examples/imagick.php')
-rw-r--r--vendor/chillerlan/php-qrcode/examples/imagick.php59
1 files changed, 0 insertions, 59 deletions
diff --git a/vendor/chillerlan/php-qrcode/examples/imagick.php b/vendor/chillerlan/php-qrcode/examples/imagick.php
deleted file mode 100644
index 6bec4d02e..000000000
--- a/vendor/chillerlan/php-qrcode/examples/imagick.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-/**
- *
- * @filesource image.php
- * @created 24.12.2017
- * @author Smiley <smiley@chillerlan.net>
- * @copyright 2017 Smiley
- * @license MIT
- */
-
-namespace chillerlan\QRCodeExamples;
-
-use chillerlan\QRCode\{QRCode, QROptions};
-
-require_once __DIR__.'/../vendor/autoload.php';
-
-$data = 'https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s';
-
-$options = new QROptions([
- 'version' => 7,
- 'outputType' => QRCode::OUTPUT_IMAGICK,
- 'eccLevel' => QRCode::ECC_L,
- 'scale' => 5,
- 'moduleValues' => [
- // finder
- 1536 => '#A71111', // dark (true)
- 6 => '#FFBFBF', // light (false)
- // alignment
- 2560 => '#A70364',
- 10 => '#FFC9C9',
- // timing
- 3072 => '#98005D',
- 12 => '#FFB8E9',
- // format
- 3584 => '#003804',
- 14 => '#00FB12',
- // version
- 4096 => '#650098',
- 16 => '#E0B8FF',
- // data
- 1024 => '#4A6000',
- 4 => '#ECF9BE',
- // darkmodule
- 512 => '#080063',
- // separator
- 8 => '#DDDDDD',
- // quietzone
- 18 => '#DDDDDD',
- ],
-]);
-
-header('Content-type: image/png');
-
-echo (new QRCode($options))->render($data);
-
-
-
-
-