petrknap/spayd-qr

Short Payment Descriptor (SPayD) with QR output

Fund package maintenance!
Other

v3.1.0 2024-06-04 16:07 UTC

README

It connects sunfoxcz/spayd-php and endroid/qr-code to one unit.

Example

use Money\Money;
use PetrKnap\SpaydQr\SpaydQr;

$iban = 'CZ7801000000000000000123';
$amount = 799.50;

echo '<img src="' .
    SpaydQr::create(
        $iban,
        Money::CZK((int)($amount * 100))
    )->getDataUri()
. '">';

Run composer require petrknap/spayd-qr to install it. You can support this project via donation. The project is licensed under the terms of the LGPL-3.0-or-later.