Bacon / BaconQrCode

QR Code Generator for PHP
BSD 2-Clause "Simplified" License
1.83k stars 208 forks source link

How do you use this? #115

Closed movepixels closed 6 months ago

movepixels commented 2 years ago

There are no instructions on how to add a URL and Email?

$renderer = new ImageRenderer(
      new RendererStyle(400),
      new SvgImageBackEnd()
    );
    $writer = new Writer($renderer);
    $qr =  $writer->writeString($this->phone);

I can write the phone number or the email or the URL but how can you combine all of these?

arxeiss commented 1 year ago

What you are asking for is irrelevant to the library. But you need a vCard for that.

I normally use some generator like this: https://www.qr-code-generator.com/solutions/vcard-qr-code/ and then scan the QR code to get the format. And then just do the same in my code.