2017 © Pedro Peláez
 

library swiss-qr-bill

A PHP library to create Swiss QR bills

image

sprain/swiss-qr-bill

A PHP library to create Swiss QR bills

  • Friday, March 30, 2018
  • by sprain
  • Repository
  • 2 Watchers
  • 5 Stars
  • 98 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 9 Versions
  • 3167 % Grown

The README.md

Swiss QR Bill

Build Status, (*1)

A PHP library to create Swiss QR Bill payment parts (_QR-Rechnung_)., (*2)

Image of Swiss QR Bill example, (*3)

Getting started

composer require sprain/swiss-qr-bill

Then have a look at example/example.php., (*4)

FAQs

  • Why is my IBAN not working?
    A typical QR bill (example) requires a special QR IBAN. You can get yours from your bank. A classic IBAN can be used for QR bills with a SCOR reference (example) or no reference number at all (example)., (*5)

  • How do I recognize a QR IBAN?
    In a QR IBAN, the institute id, which is defined in the 5th to 9th character, is a number in the range of 30000 to 31999. (Example: CH44 3199 9123 0008 8901 2). For how to detect it in code, see https://github.com/sprain/php-swiss-qr-bill/issues/182#issuecomment-1229539977, (*6)

  • How do I create QR bills for international IBANs?
    You can't. The QR bill by specification only supports IBANs from Switzerland and Liechtenstein., (*7)

  • How do I support currencies other than CHF or EUR?
    You can't. The QR bill by specification only supports CHF and EUR., (*8)

  • How do I change translations to use my own wording?
    You can't. The translations are defined in the QR bill specification and are not meant to be changed by the user. See this document, page 31., (*9)

  • How do I make my QR bills payable by Twint?
    See https://github.com/sprain/php-swiss-qr-bill/issues/129, (*10)

  • What PDF libraries are supported by this library?
    The following libraries are currently actively supported:, (*11)

    The output of HtmlOutput is known to be used to generate PDFs with PrinceXML, Docraptor, and dompdf/dompdf (with some adjustments as decribed here), (*12)

  • Why are you using final on most classes? I want to extend them!
    This library implements the official specification of the QR bill. This implementation is not supposed to be adjusted as it might result in broken QR bills. Therefore many classes are marked as final. If you find the need to extend one of those final classes, you might have found a bug in this library. In that case it will be very helpful if you provide a bug report or even a pull request here. Thank you!, (*13)

Getting help

Do you need more help using this library?, (*14)

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., (*15)

Versioning

Semantic versioning is used for this library., (*16)

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., (*17)

Support the project

Official resources

The repository contains the official specifications the library is based on:, (*18)

For more official information see - https://www.six-group.com/en/products-services/banking-services/payment-standardization/standards/qr-bill.html, (*19)

For contributors of this libray

How to generate new test data:, (*20)

  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

The Versions

30/03 2018

dev-html-output

dev-html-output

A PHP library to create Swiss QR bills

  Sources   Download

MIT

The Requires

 

The Development Requires

30/03 2018

dev-master

9999999-dev

A PHP library to create Swiss QR bills

  Sources   Download

MIT

The Requires

 

The Development Requires

30/03 2018

v0.4

0.4.0.0

A PHP library to create Swiss QR bills

  Sources   Download

MIT

The Requires

 

The Development Requires

28/03 2018

v0.3

0.3.0.0

A PHP library to create Swiss QR bills

  Sources   Download

MIT

The Requires

 

The Development Requires

13/03 2018

v0.2.1

0.2.1.0

A PHP library to create Swiss QR bills

  Sources   Download

MIT

The Requires

 

The Development Requires

13/03 2018

v0.2

0.2.0.0

A PHP library to create Swiss QR bills

  Sources   Download

MIT

The Requires

 

The Development Requires

04/03 2018

v1.0-RC1

1.0.0.0-RC1

A PHP library to create Swiss QR bills

  Sources   Download

MIT

The Requires

 

The Development Requires

04/03 2018

v0.1

0.1.0.0

A PHP library to create Swiss QR bills

  Sources   Download

MIT

The Requires

 

The Development Requires

04/03 2018

dev-4-test-qr-files

dev-4-test-qr-files

A PHP library to create Swiss QR bills

  Sources   Download

MIT

The Requires

 

The Development Requires