Download the PHP package smhg/sepa-qr-data without Composer

On this page you can find all versions of the php package smhg/sepa-qr-data. 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 sepa-qr-data

sepa-qr-data CI

Generates SEPA payment data for use in a QR code as defined in the European Payments Council's standard.

A QR code using this data can, for instance, be displayed on an invoice and be scanned by a mobile banking app.

Migrating from smhg/sepa-qr? Follow the steps below.

Installation

Usage

After this, you can choose your preferred QR code library and use this data as the input. Below are 2 examples.

With endroid/qr-code

Installation

Usage

Note: endroid/qr-code lists more ways to render.

With chillerlan/php-qrcode

Installation

Usage

Note: chillerlan/php-qrcode lists more ways to render.

API

setName($name)

Required. Set the name of the beneficiary.

setIban($iban)

Required. Set the account number of the beneficiary. Only IBAN is allowed.

setAmount($amount)

Set the amount of the credit transfer. Currently (?) only amounts in Euro are allowed.

setBic($bic)

Set the BIC of the beneficiary bank.

setRemittanceReference($remittanceReference)

Set the remittance information (structured). Creditor reference (ISO 11649) RF creditor reference may be used.

setRemittanceText($remittanceText)

Set the remittance information (unstructured).

setPurpose($purpose)

Set the purpose of the credit transfer.

setInformation($information)

Set the beneficiary to originator information.

setServiceTag($serviceTag = 'BCD')

Set the service tag. Currently (?) only one value is allowed: BCD.

setVersion($version = 2)

Set the SEPA QR standard version. In version 1 a BIC is mandatory. In version 2 a BIC is only mandatory outside EEA countries.

setCharacterSet($characterSet = Data::UTF_8)

Set the character set. Available constants are UTF_8, ISO8859_5, ISO8859_1, ISO8859_7, ISO8859_2, ISO8859_10, ISO8859_4 or ISO8859_15. Remember to also use/set this character set in the surrounding parts of your application (including endroid/qr-code).

setIdentification($identification = 'SCT')

Set the identification code. Currently (?) only one value is allowed: SCT.

Migration from smhg/sepa-qr

This project is a continuation of smhg/sepa-qr, decoupling QR code rendering. Different QR rendering libraries offer different features and support different PHP versions. This project now generates the appropriate QR code data, which can be supplied to the QR code rendering library of your choice.

Follow these steps to migrate:

1. Remove smhg/sepa-qr

2. Install smhg/sepa-qr-data and endroid/qr-code

3. Replace/add use declarations

4. Adapt QR code generation accordingly


All versions of sepa-qr-data with dependencies

PHP Build Version
Package Version
Requires php Version >=8.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 smhg/sepa-qr-data contains the following files

Loading the files please wait ....