PHP code example of primer / phpqrcode
1. Go to this page and download the library: Download primer/phpqrcode 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/ */
primer / phpqrcode example snippets
QRcode::png("data", "path/to/file.png");
QRcode::png($text, $outfile ,
correctionLevel: QRConstants::QR_ECLEVEL_L,
size: 3,
margin: 4,
saveandprint: false);
QRSettings::forceMode(QRConstants::QR_MODE_8);