emalherbi / myqrcode
My QRCode
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:HTML
Requires
- php: >= 5.0.0
- endroid/qrcode: ^4.6
README
My QrCode
Install
composer require emalherbi/myqrcode
Usage
require_once 'vendor/autoload.php'; 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())); }
Result
data:image/png;base64,iVBORw0KGgoAAAA...