SimpleSoftwareIO / simple-qrcode

An easy-to-use PHP QrCode generator with first-party support for Laravel.
https://www.simplesoftware.io/simple-qrcode
MIT License
2.66k stars 363 forks source link

Generate QrCOde with textbox #281

Open gutofurlan opened 1 year ago

gutofurlan commented 1 year ago

Hello, today I generate qur code with image and it works, very well, but I would like to add a box where I can put a number, or text, is there any way? Meu código:

$image =  QrCode::format('png')
                         ->merge($logo, 0.3, true)
                         ->size(500)->errorCorrection('H')
                         ->generate($url);
        Storage::put("convites/{$convite->id}.png", $image);

I want to put the frame as in the image, but where "Scam me" is, I can put something of mine ...

Does anyone know how to place? Thanks

Captura de Tela 2023-05-13 às 16 56 26
YazeedAlsaif commented 1 year ago

I believe this should be done on the view side, this package will generate the QR code but the rest can be done with your view.