PHP code example of emalherbi / myqrcode
1. Go to this page and download the library: Download emalherbi/myqrcode 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/ */
emalherbi / myqrcode example snippets
try {
$myQrCode = new MyQrCode\MyQrCode();
$qrCode = 'Test';
$qrCodeLabel = 'Test';
$qrCodeLogoPath = TEST.DS.'logo.png';
$result = $myQrCode->base64($qrCode, $qrCodeLabel, $qrCodeLogoPath);
echo $result;
} catch (Exception $e) {
exit(print_r($e->getMessage()));
}