### Get QR Code Data URI Source: https://github.com/dfridrich/qrplatba/blob/main/README.md Retrieves the QR code as a data URI string, which can be directly used in the `src` attribute of an `` tag. ```php // data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAFAAQMAAAD3XjfpAAAA... echo $qrPlatba->getDataUri(); ``` -------------------------------- ### Create QR Payment with Basic Details Source: https://github.com/dfridrich/qrplatba/blob/main/README.md A simplified method to create a QR payment by providing only the account number and amount. Outputs an HTML img tag with the QR code. ```php echo QRPlatba::create('12-3456789012/0100', 987.60) ->setMessage('QR platba je parádní!') ->getQRCodeImage(); ``` -------------------------------- ### Create QR Payment with IBAN Source: https://github.com/dfridrich/qrplatba/blob/main/README.md Use this method to create a QR payment using an IBAN account number. Outputs an HTML img tag with the QR code. ```php echo QRPlatba::create('CZ6508000000192000145399', 987.60) ->setMessage('QR platba je parádní!') ->getQRCodeImage(); ``` -------------------------------- ### Generate QR Payment with Details Source: https://github.com/dfridrich/qrplatba/blob/main/README.md Use this snippet to set account details, symbols, amount, currency, and due date for a QR payment. The output is an HTML img tag with the QR code data URI. ```php setAccount('12-3456789012/0100') // nastavení č. účtu ->setIBAN('CZ3112000000198742637541') // nastavení č. účtu ->setVariableSymbol('2016001234') ->setMessage('Toto je první QR platba.') ->setConstantSymbol('0308') ->setSpecificSymbol('1234') ->setAmount('1234.56') ->setCurrency('CZK') // Výchozí je CZK, lze zadat jakýkoli ISO kód měny ->setDueDate(new DateTime()); echo $qrPlatba->getQRCodeImage(); // Zobrazí tag s kódem, viz níže ``` -------------------------------- ### Generate QR Invoice Only Source: https://github.com/dfridrich/qrplatba/blob/main/README.md Configure the library to generate only a QR Invoice without payment details. ```php $qrPlatba->setIsOnlyInvoice(true)->setLabel('QR Faktura'); ``` -------------------------------- ### Save QR Code Image to File Source: https://github.com/dfridrich/qrplatba/blob/main/README.md Saves the generated QR code to a file. You can specify the filename, format (PNG or SVG), and size. ```php // Uloží png o velikosti 100x100 px $qrPlatba->saveQRCodeImage("qrcode.png", "png", 100); // Uloží svg o velikosti 100x100 px $qrPlatba->saveQRCodeImage("qrcode.svg", "svg", 100); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.