PHP code example of overlordz / phpqrcode
1. Go to this page and download the library: Download overlordz/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/ */
overlordz / phpqrcode example snippets
use PhpQrcode\PhpQrcode;
$data = [
'content' => 'https://github.com/overlordz',
'bgPic' => dirname(__DIR__).'/src/assets/images/example.gif',
'imgDir' => dirname(__DIR__).'/temp/images/',
'tempQRcodeDir' => dirname(__DIR__).'/temp/tempQRcode/',
];
$res = PhpQrcode::QRcodePng($data);