mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-18 03:33:23 +00:00
🚿 extract OUTPUT_* constants from QRCode to QROutputInterface and mark QRCode::OUTPUT_* as deprecated
This commit is contained in:
+3
-2
@@ -7,14 +7,15 @@
|
||||
*/
|
||||
|
||||
use chillerlan\QRCode\{QRCode, QROptions};
|
||||
use chillerlan\QRCode\Data\QRMatrix;
|
||||
use chillerlan\QRCode\Common\EccLevel;
|
||||
use chillerlan\QRCode\Data\QRMatrix;
|
||||
use chillerlan\QRCode\Output\QROutputInterface;
|
||||
|
||||
require_once __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
$options = new QROptions([
|
||||
'version' => 7,
|
||||
'outputType' => QRCode::OUTPUT_IMAGE_PNG,
|
||||
'outputType' => QROutputInterface::GDIMAGE_PNG,
|
||||
'eccLevel' => EccLevel::L,
|
||||
'scale' => 10,
|
||||
'imageBase64' => false,
|
||||
|
||||
Reference in New Issue
Block a user