VCard
UseQrCode::VCard(array $config) to produce a vCard 3.0 payload. VCard is the most widely supported contact format across iOS, Android, and desktop mail clients, making it the safest default choice for business cards, event badges, and printed marketing materials.
Supported Keys
If
firstName and lastName are provided, they will automatically construct
the structured N field in the VCard, while name populates the FN
(Formatted Name) field.Example
Always wrap in
try/catch when using user-supplied data. The only hard
requirement is a non-empty name; all other keys are optional.MeCard
UseQrCode::MeCard(string $name, ...) to produce a MeCard payload. MeCard is a lighter-weight format originating from NTT DoCoMo and is prevalent in Japan and some Asian markets. It carries slightly fewer fields than vCard but produces a shorter payload, resulting in a less complex QR code.