PHP code example of arcanedev / qr-code
1. Go to this page and download the library: Download arcanedev/qr-code 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/ */
arcanedev / qr-code example snippets
rcanedev\QrCode\QrCode;
$qrCode = new QrCode;
$qrCode->setText("I would love to change the world, but they won't give me the source code");
$qrCode->setSize(200);
echo $qrCode->image("image alt", ['class' => 'qr-code-img']);