Please consider supporting my channel:
☕ https://ko-fi.com/davehollingworth
Learn how to generate a QR code using PHP.
QR codes are two dimensional barcodes that can hold up to 2000 characters of text. Depending on the content, when you scan a QR code they can simply display the text they contain; open a browser at a specific URL, call a phone number and so on.
In the context of a web application, you might want to use them to link to an online invoice, a unique code for a ticket to gain entry to an event, a location on a map and so on.
Full PHP course:
➤ https://davehollingworth.net/phpy
In this video you'll learn:
• the basics of generating a QR code using PHP
• changing the colour and size
• adding labels and watermark images
• setting error correction levels
• outputting the QR code as a PNG image
• saving the image to a file on the server
Code shown in the video:
‣ https://gist.github.com/daveh/c63af8c...
Endroid QR-Code package:
‣ https://github.com/endroid/qr-code
WikiPedia QR Code:
https://en.wikipedia.org/wiki/QR_code
CSS:
‣ https://watercss.kognise.dev/
00:00 Introduction
00:50 Install package
01:18 Create a QR code
02:05 Set size and margin
03:32 Change colours
04:19 Add a label
05:10 Change label colour
05:34 Change label alignment
06:04 Add a logo
06:51 Resize the logo
07:09 Readability
07:38 Set the error correction level
08:15 Save to a local file
09:23 Summary
#PHP #qrcode