Back to all passes
Wi-Fi pass
Create a pass
Share your Wi-Fi network
Enter your network's SSID and password. We generate an Apple Wallet pass with the credentials encoded as a Wi-Fi QR code. Anyone with an iPhone or Android device scans the pass's barcode and the OS offers to join the network.
How it's built
A generic Apple Wallet pass with the SSID shown as a field and the password attached via Apple's wifiAccess semantic tag. Wallet surfaces a "Join Wi-Fi network" button instead of printing the password on the pass. The pass also carries a Wi-Fi URI QR code (WIFI:S:ssid;T:WPA;P:password;;) so Android cameras can join too.
GenericPassBuilder::make()
->setOrganisationName('Wi-Fi share')
->setDescription('Wi-Fi credentials for '.$ssid)
->addField('ssid', $ssid, label: 'Network')
->addWifiNetwork($ssid, $password)
->setBarcode(
BarcodeType::Qr,
"WIFI:S:{$ssid};T:WPA;P:{$password};;",
altText: $ssid,
)
->save();
See the source in GenerateExampleWifiPass.php.