emalherbi/myqrcode

My QRCode

v2.0.0 2024-12-26 16:53 UTC

This package is auto-updated.

Last update: 2025-03-26 17:34:02 UTC


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...

Imagem

QrCode