PHP code example of chillerlan / php-qrcode
1. Go to this page and download the library: Download chillerlan/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/ */
chillerlan / 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" />';
composer json
{
": "^8.4",
"chillerlan/php-qrcode": "dev-main#<commit_hash>"
}
}