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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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


All versions of php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package paybysquare/php contains the following files

Loading the files please wait ...