petrknap / spayd-qr
Short Payment Descriptor (SPayD) with QR output
Fund package maintenance!
Other
Requires
- php: >=8.1
- endroid/qr-code: ^5.0
- moneyphp/money: ^4.1
- sunfoxcz/spayd-php: ^2.0
Requires (Dev)
- nunomaduro/phpinsights: ^2.11
- petrknap/shorts: ^2.1
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.6
- squizlabs/php_codesniffer: ^3.7
This package is auto-updated.
Last update: 2024-11-04 22:33:53 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
.