php-qrcode : Unabled to create custom qrcode #176
Unanswered
digitalbambou
asked this question in
Q&A
Replies: 1 comment 3 replies
-
The examples you're trying to run are from |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I installed the latests release of the library via composer on my local webserver.
I'm using php8.1.
Basic use is working but i still have issues when i try to use custom output.
What is working (simple qrcode) :
use chillerlan\QRCode\{QRCode, QROptions}; require_once .'/../vendor/autoload.php'; $options = new QROptions([ 'version' => 5, 'outputType' => QRCode::OUTPUT_MARKUP_SVG, 'eccLevel' => QRCode::ECC_L, ]); $data = "https://myUrl.com"; $qrcode = new QRCode($options); $renderQrcode = $qrcode->render($data); echo '<img src="'.$renderQrcode.'" alt="QR Code" />'; exit();
What i want to do (custom qrcode whith logo, custom shape and custom colors):
I try to do it step by step.
First i'm using svgWithLogo.php example but i have a fatal error.
Fatal error: Uncaught Error: Class "chillerlan\QRCode\Output\QRMarkupSVG
I think there is a step that I am not doing correctly.
can i have any help ?
Regards and Happy new year !
Beta Was this translation helpful? Give feedback.
All reactions