It connects sunfoxcz/spayd-php and endroid/qr-code to one unit.
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
.