Download the PHP package paybysquare/php without Composer
On this page you can find all versions of the php package paybysquare/php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download paybysquare/php
More information about paybysquare/php
Files in paybysquare/php
Package php
Short Description Pay By Square (Slovak payment QR standard) payload generator. Pure PHP, no extensions, no shell-outs.
License MIT
Homepage https://github.com/usmansher/paybysquare
Informations about the package php
paybysquare/php
Pay By Square payload generator for PHP — the Slovak Banking Association's payment QR standard. Pure PHP ≥ 8.2: no extensions, no shell-outs, installs on any shared host.
Part of the paybysquare/php
multi-language suite: the same contract is implemented in TypeScript
(@paybysquare/core on npm) and served by a hosted/self-hostable HTTP API —
all verified against one shared set of test vectors. Using Laravel? See
paybysquare/laravel
for a facade, config defaults, and a Blade QR component.
Install
Usage
Array input works too (canonical camelCase keys):
Render with any QR library, e.g. bacon/bacon-qr-code:
Input
amount, iban and beneficiaryName are required; currency (default
EUR), date (DateTimeInterface or YYYY-MM-DD, default today), swift,
variableSymbol, constantSymbol, specificSymbol, note,
beneficiaryAddress1/2 are optional. Invalid input throws
PayBySquare\ValidationException with a public $field property.
Amounts with more than 2 decimal places are rejected, not rounded.
Correctness
Every release passes the shared test vectors: payloads are decoded by an independent liblzma-based reference verifier and the recovered data must match the spec byte-for-byte. The emitted LZMA stream is literal-coded — roughly 10–20% longer than liblzma's output (at most one QR version larger; scannability is unaffected) — and decodable by any conforming LZMA decoder.
Trademark note
PAY by square is a payment standard of the Slovak Banking Association. This is an independent open-source implementation, not affiliated with or endorsed by the SBA or Bysquare.
License
MIT © usmansher