PHP code example of supergnaw / luxiqr

1. Go to this page and download the library: Download supergnaw/luxiqr library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

supergnaw / luxiqr example snippets


$qrCode = new LuxiQR(
    data: "https://github.com/supergnaw/LuxiQR",
    eccLevel: "H"
);

echo $qrCode->outputTable();

$qrCode = LuxiQR::Call(
    countryCode: "+1",
    phoneNumber: "(519) 867-5309",
    eccLevel: "H"
);

echo $qrCode->outputTable();

$qrCode = LuxiQR::Email(
    email: "[email protected]",
    subject: "Test Email",
    body: "This is an example.",
        eccLevel: "H"
);

echo $qrCode->outputTable();

$qrCode = LuxiQR::URL(
    url: "https://www.google.com/",
    eccLevel: "H"
);

echo $qrCode->outputTable();

$qrCode = LuxiQR::WiFi(
    ssid: "",
    encryption: "WPA",
    password: "correct horse battery staple",
    hidden: false,
    eccLevel: "H"
);

echo $qrCode->outputTable();

$qrCode = LuxiQR::YouTube(
    url: "https://www.youtube.com/watch?v=w5ebcowAJD8",
    eccLevel: "H"
);

echo $qrCode->outputTable();