petrknap/php-spaydqr

Short Payment Descriptor (SPayD) with QR output

v2.0.0-rc1 2019-06-28 15:38 UTC

This package is auto-updated.

Last update: 2020-01-28 17:05:25 UTC


README

It connects shoptet/spayd-php and endroid/qr-code to one unit.

Example

<img src="<?=

    PetrKnap\Php\SpaydQr\SpaydQr::create(
        'CZ7801000000000000000123',
        Money\Money::CZK(79950)
    )->getDataUri();

?>" />

How to install

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.