Download the PHP package feldsam-inc/paybysquare-php without Composer

On this page you can find all versions of the php package feldsam-inc/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 paybysquare-php

PayBySquare PHP

A PHP library for generating PAY by square payment QR codes for Slovak payment systems.

Latest Stable Version Total Downloads License

PHP Compatibility

PHP 7.4 PHP 8.0 PHP 8.1 PHP 8.2 PHP 8.3

Requirements

Installation

Usage

Basic Usage

Advanced Usage

Multiple Bank Accounts

You can add multiple bank accounts to a single payment:

Beneficiary Information

You can include beneficiary information in the payment:

QR Code Customization

You can customize the generated QR code with various options:

Payment Symbols

Slovak payment systems use specific symbols for payment identification:

Payment Reference

Alternatively, you can use a payment reference instead of symbols:

Note: Payment reference and symbols (VS, KS, SS) are mutually exclusive. Setting a reference will clear any previously set symbols, and setting any symbol will clear the reference.

Bank Compatibility: Some banking applications (like mBank SK) may not display the reference field when scanning the QR code - it might be ignored or hidden in the app interface. If you want to ensure your reference information is visible to the end user, consider using the paymentNote field instead:

HTML and Data URI Output

You can get the QR code as an HTML img tag or as a data URI:

Multiple Output Formats

You can save the QR code in different formats (PNG, SVG):

Color Customization

You can customize the QR code colors:

Custom XZ Binary Path

By default, the library will search for the XZ binary in common locations (/usr/bin/xz, /usr/local/bin/xz, /opt/homebrew/bin/xz, /opt/local/bin/xz, /bin/xz). If your XZ binary is installed in a different location, you can specify the path when creating a PayBySquare instance:

Raw Data String

If you want to use your own QR code generation library, you can get the raw PAY by square data string:

Exception Handling

The library throws custom exceptions when errors occur during the encoding process. The main exception type is EncodingException, which is thrown when the encoding process fails, typically due to issues with the XZ binary.

Common error scenarios:

PAY by square Format

This library implements the PAY by square format as defined in the XSD schema. The format includes:

License

MIT License


All versions of paybysquare-php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
endroid/qr-code Version ^4.0
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 feldsam-inc/paybysquare-php contains the following files

Loading the files please wait ....