I saw some online qr code generators such as https://dashboard.unitag.io/ and I was wondering how they do it. Is it possible to do that in PHP? If so, how would I manage to do that? (I know there are some APIs to create colored QR codes and insert images into it, but I never found any that could change the 'shape' of the QR code...)
Asked
Active
Viewed 2,172 times
3
-
2Possible duplicate of [Dynamically generating a QR code with PHP](http://stackoverflow.com/questions/5943368/dynamically-generating-a-qr-code-with-php) – Panda Mar 13 '16 at 02:25
-
Possible Duplicate Of - http://stackoverflow.com/questions/5943368/dynamically-generating-a-qr-code-with-php – Ikari Mar 13 '16 at 02:25
-
This question possibly belongs on [Software Recommendations](http://softwarerecs.stackexchange.com) – Tom Mar 13 '16 at 02:42
1 Answers
1
I would look into a library called PHP QR Code. It's open source and is pretty simple to use,
QRcode::png('code data text', 'filename.png'); // creates file
QRcode::png('some othertext 1234'); // creates code image and outputs it directly into browser
If you're looking for a library with a little more functionality, check out Advanced Custom QR Code Generator. It costs $35 but gives you the ability to work with shapes, colors, and even embed logos.

Tom
- 1,223
- 1
- 16
- 27
-
Thanks for the reply. As I mentioned, I already know about some APIs that create QR codes, but none of them can change the shape of the QR code like unitag does. – LCastr0 Mar 13 '16 at 02:37
-
@LCastr0 I've updated my answer including another library you may want to checkout – Tom Mar 13 '16 at 02:41
-
1
-
2the library mentioned is no longer available for sale, but it is on github - https://github.com/mahadazad/qrcode – Apps-n-Add-Ons Aug 14 '18 at 21:29
-