PHP code example of chroma-x / qr-code-suite
1. Go to this page and download the library: Download chroma-x/qr-code-suite 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/ */
chroma-x / qr-code-suite example snippets
{php}
{php}
use QrCodeSuite\QrEncode\QrEncoder;
// Encode the data as QR code block data
$encoder = new QrEncoder();
$qrCodeData = $encoder
->setLevel(QrEncoder::QR_CODE_LEVEL_LOW)
->setTempDir('path/to/writable/directory')
->encodeQrCode('https://github.com/chroma-x/php-qr-code-suite');