Download the PHP package rikudou/pay-by-square-decoder without Composer

On this page you can find all versions of the php package rikudou/pay-by-square-decoder. 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 pay-by-square-decoder

Pay By Square decoder

Download

This library decodes the string encoded according to the Slovakian Pay By Square standard.

This package can be used as a standalone library or a Symfony bundle

Installing

composer require rikudou/pay-by-square-decoder

Requirements

You must have the xz binary from xz-utils in your system.

Usage

The class \Rikudou\BySquare\Decoder\PayBySquareDecoder has a public method called decode which accepts a string argument with the encoded data.

Example:

If the xz binary is not in your PATH you must set the path first:

Advanced configuration

The \Rikudou\BySquare\Decoder\PayBySquareDecoder takes a configuration object as a first argument, where some advanced configuration can take place.

If no configuration object is provided, one with default values is created.

Currently only partial data config is available.

Options

Usage in Symfony

If you use Symfony flex, the package should be configured automatically, if not, just add \Rikudou\BySquare\RikudouPayBySquareDecoderBundle to your config/bundles.php.

You can now use Rikudou\BySquare\Decoder\PayBySquareDecoder as a service:

If your xz binary is not in your path, you can create a config file in config/packages/rikudou_pay_by_square_decoder.yaml and change the path, here is the default config (generated using config:dump command):

Return values description

The decode method returns an instance of \Rikudou\BySquare\VO\DecodedBySquareData which is a value object. The method names are self-explanatory in most cases.

The methods getIban and getIbans return \Rikudou\BySquare\VO\IBAN (or iterable of it) which is a really simple value object with two methods:

Exception handling

The only exception thrown by this library is \Rikudou\BySquare\Exception\PayBySquareException


All versions of pay-by-square-decoder with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
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 rikudou/pay-by-square-decoder contains the following files

Loading the files please wait ....