PHP code example of liveecommerce / php-qrcode
1. Go to this page and download the library: Download liveecommerce/php-qrcode 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/ */
liveecommerce / php-qrcode example snippets
$data = 'otpauth://totp/test?secret=B3JX4VCVJDVNXNZ5&issuer=chillerlan.net';
// quick and simple:
echo '<img src="'.(new QRCode)->render($data).'" alt="QR Code" />';
json
{
": "^7.4",
"chillerlan/php-qrcode": "dev-main"
}
}