BCD Payment-QR-Code

0.2.1 2020-07-23 08:21 UTC

This package is auto-updated.

Last update: 2022-01-23 11:21:04 UTC


This library provides a simple way to create a payment QR-code e.g. for invoices conforming to the EPC QR-Code standard.


  • Provides easy and convenient payment for users, reducing typos
  • Easy-to-use, object-oriented library
  • High test coverage
  • Open-Source (LGPL-3.0)


  • PHP 7.1 or higher
  • GD or Imagick extension for creating the QR-Code


The recommended way to install the BCD library is via composer.

"require": {
    "alpenedv/bcd": "0.2.*"

Usage examples


use Alpenedv\Tools\Bcd\Bill;
use Alpenedv\Tools\Bcd\BillToStringConverter;

$bill = new Bill();
$bill->setVersion(Bill::VERSION_2); // optional, as version 2 is the default
$bill->setReceiverName('Umbrella Corp.');
$bill->setReasonForPayment('Handshakomat Über 3000');

$converter = new BillToStringConverter();
$qrText = $converter->convert($bill);
// The $qrText can now be used in any QR-code generation library, e.g. using TCPDFs barcodes.


The test suite can be run with vendor/bin/phpunit tests.


Contributions to the BCD library are highly welcome. Please conform to the PSR-12 coding standard and provide tests for your code.