1. Go to this page and download the library: Download peterbodnar.com/bsqr library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
peterbodnar.com / bsqr example snippets
use com\peterbodnar\bsqr;
$document = (new bsqr\model\Payment())
->setDueDate("0000-00-00") // YYYY-MM-DD
->setAmount(123.45, "EUR") // amount, currency code
->setSymbols("1234567890", "308") // variable, constant symbol
->addBankAccount("SK3112000000198742637541", "XXXXXXXXXXX") // iban, bic/swift
->createPayDocument();