PHPackages                             jorklo/swiss-qr-bill - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. jorklo/swiss-qr-bill

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

jorklo/swiss-qr-bill
====================

A PHP library to create Swiss QR bills

01.2k↓50%1HTML

Since Oct 7Pushed 3y agoCompare

[ Source](https://github.com/JorKlo/php-swiss-qr-bill)[ Packagist](https://packagist.org/packages/jorklo/swiss-qr-bill)[ RSS](/packages/jorklo-swiss-qr-bill/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Swiss QR Bill
=============

[](#swiss-qr-bill)

[![Build Status](https://github.com/jorklo/php-swiss-qr-bill/actions/workflows/tests.yml/badge.svg)](https://github.com/jorklo/php-swiss-qr-bill/actions)

A PHP library to create Swiss QR Bill payment parts (*QR-Rechnung*) which fully replaced the red and orange payment slips by September 30, 2022.

[![Image of Swiss QR Bill example](docs/assets/example-payment-part.png)](docs/assets/example-payment-part.png)

Getting started
---------------

[](#getting-started)

```
composer require jorklo/swiss-qr-bill

```

Then have a look at [example/example.php](example/example.php).

FAQs
----

[](#faqs)

- **Why is my IBAN not working?**
    A typical QR bill ([example](https://github.com/jorklo/php-swiss-qr-bill/blob/master/example/example.php)) 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](https://github.com/jorklo/php-swiss-qr-bill/blob/master/example/example_scor.php)) or no reference number at all ([example](https://github.com/jorklo/php-swiss-qr-bill/blob/master/example/example_minimal.php)).
- **How do I recognize a QR IBAN?**
    See
- **How do I create QR bills for international IBANs?**
    You can't. The QR bill by specification only supports IBANs from Switzerland and Liechtenstein.
- **How do I support currencies other than CHF or EUR?**
    You can't. The QR bill by specification only supports CHF and EUR.
- **How do I make my QR bills payable by Twint?**
    See
- **What PDF libraries are supported by this library?**
    The following libraries are currently actively supported:

    - [fpdf/fpdf](https://packagist.org/packages/fpdf/fpdf)
    - [tecnickcom/tcpdf](https://packagist.org/packages/tecnickcom/tcpdf)
    - [setasign/fpdi](https://packagist.org/packages/setasign/fpdi) (accepted by `FpdfOutput` and `TcPdfOutput`)

    The output of `HtmlOutput` has been known to be used to generate PDFs with [PrinceXML](https://www.princexml.com), [Docraptor](http://docraptor.com) or [dompdf/dompdf](https://packagist.org/packages/dompdf/dompdf) (with some adjustments as decribed [here](https://github.com/jorklo/php-swiss-qr-bill/issues/178#issuecomment-1222752493))

Getting help
------------

[](#getting-help)

Do you need more help using this library?

- [Search the existing and closed issues](https://github.com/jorklo/php-swiss-qr-bill/issues?q=is%3Aissue) to see if you find your answer there.
- If you still need help, you may [create an issue](https://github.com/jorklo/php-swiss-qr-bill/issues) yourself to ask your question.

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
----------

[](#versioning)

[Semantic versioning](https://semver.org/) 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.

Support the project
-------------------

[](#support-the-project)

- Do you like this project? [Consider a Github sponsorship.](https://github.com/sponsors/jorklo)
- Would you like to contribute? [Have a look at the open issues.](https://github.com/jorklo/php-swiss-qr-bill/issues) Be nice to each other.
- Spread the word!

Official resources
------------------

[](#official-resources)

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

- [Swiss Implementation Guidelines QR-bill](docs/specs/ig-qr-bill-en-v2.2.pdf)
- [Technical information about the QR-IID and QR-IBAN](docs/specs/qr-iid_qr-iban-en.pdf)
- [Style Guide QR-bill](docs/specs/style-guide-en.pdf)
- [Validation Tool](https://validation.iso-payments.ch/gp/qrrechnung/validation/)

For more official information about the new standards see

-
-

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/99b5c6d61392cd0aafd6f2968de9019bfbba312a2719a2530dc48461fb80b25d?d=identicon)[JorKlo](/maintainers/JorKlo)

---

Top Contributors

[![sprain](https://avatars.githubusercontent.com/u/260361?v=4)](https://github.com/sprain "sprain (496 commits)")[![Franco2911](https://avatars.githubusercontent.com/u/53708871?v=4)](https://github.com/Franco2911 "Franco2911 (18 commits)")[![kohlerdominik](https://avatars.githubusercontent.com/u/18621527?v=4)](https://github.com/kohlerdominik "kohlerdominik (16 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (5 commits)")[![JorKlo](https://avatars.githubusercontent.com/u/53254440?v=4)](https://github.com/JorKlo "JorKlo (4 commits)")[![markcameron](https://avatars.githubusercontent.com/u/1106894?v=4)](https://github.com/markcameron "markcameron (2 commits)")[![auerswald](https://avatars.githubusercontent.com/u/2876592?v=4)](https://github.com/auerswald "auerswald (1 commits)")[![thedevpatrick](https://avatars.githubusercontent.com/u/67503767?v=4)](https://github.com/thedevpatrick "thedevpatrick (1 commits)")[![groupnet](https://avatars.githubusercontent.com/u/10133206?v=4)](https://github.com/groupnet "groupnet (1 commits)")[![iquito](https://avatars.githubusercontent.com/u/973653?v=4)](https://github.com/iquito "iquito (1 commits)")[![Sandritsch91](https://avatars.githubusercontent.com/u/17873124?v=4)](https://github.com/Sandritsch91 "Sandritsch91 (1 commits)")[![sdespont](https://avatars.githubusercontent.com/u/646632?v=4)](https://github.com/sdespont "sdespont (1 commits)")[![Shkryob](https://avatars.githubusercontent.com/u/1246955?v=4)](https://github.com/Shkryob "Shkryob (1 commits)")

### Embed Badge

![Health badge](/badges/jorklo-swiss-qr-bill/health.svg)

```
[![Health](https://phpackages.com/badges/jorklo-swiss-qr-bill/health.svg)](https://phpackages.com/packages/jorklo-swiss-qr-bill)
```

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.3k](/packages/phpoffice-phpspreadsheet)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.1k57.6M131](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
