> ## Documentation Index
> Fetch the complete documentation index at: https://docs.linkx.tr/llms.txt
> Use this file to discover all available pages before exploring further.

# QR Code Data Types Overview & Reference

> Learn how Laravel QR Code data types encode structured information into standard QR payloads, with a guide to every available type.

Data types are purpose-built helpers that transform structured information — like a contact card, a cryptocurrency address, or a Wi-Fi credential — into the standardised QR payload format that scanner apps understand natively. Instead of assembling URI strings by hand, you call a named method and pass typed arguments; the package handles encoding, escaping, and spec compliance for you.

Every data type method returns a `QrCodeResult`, which means you can chain rendering or saving calls directly onto the result without any intermediate steps.

> [!TIP]
>
> All data type methods return a `QrCodeResult` instance, so you can immediately render or save the output: `QrCode::Email('hi@example.com')->generate()` works just as well as storing the result first.

> [!WARNING]
>
> All data types validate their inputs strictly and throw typed exceptions on invalid values. Always wrap user-supplied input in a `try/catch` block to handle validation errors gracefully.
>
> ```php theme={null}
> use Linkxtr\QrCode\Facades\QrCode;
> use Linkxtr\QrCode\Exceptions\InvalidDataTypeArgumentException;
>
> try {
>     $qr = QrCode::Email($request->input('email'));
> } catch (InvalidDataTypeArgumentException $e) {
>     // Handle validation error
> }
> ```

## Available Data Types

> [card] [Contact](https://docs.linkx.tr/data-types/contact.md)
>
> Encode full contact details as a scannable vCard or MeCard that can be saved
> directly to a phone's address book.

> [card] [Communication](https://docs.linkx.tr/data-types/communication.md)
>
> Pre-fill email drafts, phone dials, SMS messages, WhatsApp chats, and
> Telegram profile links with a single scan.

> [card] [Payment](https://docs.linkx.tr/data-types/payment.md)
>
> Generate Bitcoin and Ethereum payment requests compatible with all major
> crypto wallets.

> [card] [Other Types](https://docs.linkx.tr/data-types/other.md)
>
> Connect devices to Wi-Fi instantly, drop a pin on a map, or add a calendar
> event — all with a scan.

## Quick Reference

| Method | Category | Key Parameters |
| - | - | - |
| `QrCode::VCard(array $config)` | Contact | `name`, `email`, `phone`, `company`, … |
| `QrCode::MeCard(string $name, …)` | Contact | `name`, `phone`, `email`, `url`, … |
| `QrCode::Email(string $address, …)` | Communication | `address`, `subject`, `body`, `cc`, `bcc` |
| `QrCode::PhoneNumber(string $phone)` | Communication | E.164 phone number |
| `QrCode::SMS(string $phoneNumber, …)` | Communication | `phoneNumber`, `message` |
| `QrCode::WhatsApp(string\|array …)` | Communication | `number`, `message` |
| `QrCode::Telegram(string $username)` | Communication | Telegram username |
| `QrCode::BTC(string $address, …)` | Payment | `address`, `amount`, `label`, `message` |
| `QrCode::Ethereum(string $address, …)` | Payment | `address`, `amount` in ETH |
| `QrCode::WiFi(array $credentials)` | Other | `ssid`, `encryption`, `password` |
| `QrCode::Geo(float $lat, float $lng, …)` | Other | `latitude`, `longitude`, `name` |
| `QrCode::CalendarEvent(array $attrs)` | Other | `summary`, `start`, `end`, … |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.