QR Code Generator
Creating QR codes can be quite useful. Over here some additional information how to do it with PHP and especially some information about QR codes in general.
Creating your own QR code can be easily done on the QR Code Generator page. Just write your own text or copy some text from below and adapt it to your needs.
Types of QR Codes
QR codes can be used for quite a lot of different types of information. Below a list of some possibilities.
If you want to add a webpage URL to the QR code, just use http: or https: and you are good to go.
By the way, using capital letters instead of lower letters is not changing the URL in any way but is encoded more efficiently in QR code.
You can just enter the email address but it is preferred to add mailto: in front of the mail address.
A phone number should be prefixed with tel: to indicated that the information is about a phone number. It is also a pretty good idea to add the country code that the number is working independent of the reader location.
Readers usually open the phone application when a phone number is detected - but not dialing the number.
tel:+1 345 555 6578
Pretty much the same as with a phone number, just using the sms: prefix
sms:+1 345 555 6578
To store your whole contact information you can use the vCard format. Even though it is not really optimal for QR codes it is widely supported and works pretty well. Just use the template below to get a very basic vCard.
BEGIN:VCARD VERSION:2.1 ORG: Orga Inc. TEL;WORK;VOICE:+1 555 6787 653 ADR;TYPE=work:;;Street 10;City;Province;89898;Germany EMAIL:email@example.com END:VARD
The meCard format is similar to the vCard but optimized and needs less space. It is widely supported and in case of QR codes it might be preferred over vCards.
This is an event in the iCal format but without the BEGIN:VCALENDAR and END:VCALENDAR elements.
BEGIN:VEVENT SUMMARY:Test Meeting DTSTART:20180513T190000Z DTEND:20180513T200000Z END:VEVENT
You can specify the coordinates with the "geo:" prefix and usually the reader opens an application to show this location. Specify the latitude, longitude, height (above sea level).
The configuration of a Wifi network can be encoded in a QR code as well. The parameters consist of the following codes:
T: Type of authentication, WAP or WAP or just omit if no password is used.
S: SSID of the network, this is basically the name of the network. Place the name in double quotes.
P: Password of the network if one exists. Place the password in double quotes.
H:Hidden SSID. Set this to true if your SSID is hidden or just omit it.