petrknap/spayd-qr

Short Payment Descriptor (SPayD) with QR output

Fund package maintenance!
Other

v3.0.2 2023-10-12 06:55 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.