petrknap / php-spaydqr
Short Payment Descriptor (SPayD) with QR output
Fund package maintenance!
Other
Installs: 12 975
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 2
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-06-04 21:43:42 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
.