It connects shoptet/spayd-php and endroid/qr-code to one unit.
<img src="<?=
PetrKnap\Php\SpaydQr\SpaydQr::create(
'CZ7801000000000000000123',
Money\Money::CZK(79950)
)->getDataUri();
?>" />
Run composer require petrknap/php-spaydqr
or merge this JSON code with your project composer.json
file manually and run composer install
. Instead of dev-master
you can use one of released versions.
{
"require": {
"petrknap/php-spaydqr": "dev-master"
}
}
Or manually clone this repository via git clone https://github.com/petrknap/php-spaydqr.git
or download this repository as ZIP and extract files into your project.