sprain / php-swiss-qr-bill

A PHP library to create Swiss QR bills | QR-Rechnung in PHP erstellen
MIT License
282 stars 82 forks source link
php-library qr-facture qr-fattura qr-rechnung swiss-qr-bill switzerland

Swiss QR Bill

Build Status

A PHP library to create Swiss QR Bill payment parts (QR-Rechnung).

Image of Swiss QR Bill example

Getting started

composer require sprain/swiss-qr-bill

Then have a look at example/example.php.

FAQs

Getting help

Do you need more help using this library?

Please note that the maintainer of this library will not provide any support by email. The beauty of open source software lies in the fact that everybody can benefit from each other. Therefore questions will only be answered in public.

Versioning

Semantic versioning is used for this library.

In addition, a minor version will always be published if any visible change in the output of the qr code or the payment part takes place, even if it could be considered to be just a bugfix.

PHP version support

This library supports a PHP version as long as it accounts for at least approximately 10% of current installations.

Depdendency support

Older versions of dependencies are supported as long as they do not hinder further development or account for at least approximately 10% of current installations of the corresponding dependency.

Support the project

Official resources

The repository contains the official specifications the library is based on:

For more official information see

For contributors of this libray

How to generate new test data:

  1. Set $regenerateReferenceFiles = true in TestQrBillCreatorTrait
  2. composer update --prefer-lowest
  3. vendor/bin/phpunit – ignore failing tests in testQrFile
  4. composer update
  5. vendor/bin/phpunit – there should be no more errors
  6. Set $regenerateReferenceFiles = false in TestQrBillCreatorTrait