generate(), returning a QrCodeResult directly. You can chain any styling methods before calling a data type method.
Email()
mailto: QR code. The address, cc, and bcc values are validated with FILTER_VALIDATE_EMAIL; an invalid value throws InvalidEmailArgumentException.
PhoneNumber()
tel: QR code that opens the device dialler.
SMS()
sms: QR code that opens the device SMS app.
The recipient phone number, ideally in E.164 format (e.g.
+12025551234).Geo()
geo: QR code encoding a geographic coordinate. Scanners open the device map application at the given location.
WiFi()
BTC()
bitcoin: URI scheme (BIP 21).
The requested amount in BTC (e.g.
0.005). Must be a non-negative numeric
value. Pass as a string for very small amounts to avoid floating-point
precision issues.URL the wallet should redirect to after the transaction is broadcast (maps to
the
r query parameter).Ethereum()
ethereum: URI scheme (ERC-67).
The requested amount in ETH. Omit or pass
null for an amount-agnostic
address QR code.VCard()
MeCard()
CalendarEvent()
.ics) QR code for a single event. Scanners open the native calendar application and pre-fill a new event.
Per RFC 5545, the generated iCalendar payload includes a
DTSTAMP property
set to the current UTC timestamp at the moment of generation. Two calls
for the same event will therefore produce different binary output and cannot
be byte-for-byte cached. Generate CalendarEvent QR codes at request time
rather than caching the raw bytes.WhatsApp()
https://wa.me/ deep-link QR code that opens a WhatsApp chat. You may also pass a single associative array using phoneNumber and message as keys. The leading + is stripped automatically.
The recipient phone number, ideally in E.164 format (e.g.
+12025551234).
Must not be empty.Telegram()
https://t.me/ deep-link QR code that opens a Telegram profile or channel.
The Telegram username. The leading
@ is stripped automatically if present.
Must be 5–32 characters long, start with a letter, and contain only letters,
digits, and underscores — following Telegram’s username rules. You can also
pass an associative array with a username key.Chaining styling with data types
Because all styling methods return a clonedGenerator, you can apply size, color, and style options before calling any data type method: