helip/sepaqr

Class to to generate a SEPA Quick Response (QR) code

v0.9.1 2023-06-16 20:28 UTC

This package is auto-updated.

Last update: 2024-04-17 10:57:07 UTC


README

SEPAQR is a PHP library for generating SEPA (Single Euro Payments Area) QR codes for SCT (SEPA Credit Transfer) transactions. It is designed to follow the guidelines provided by the European Payments Council.

Features

  • Create SEPA QR codes for SCT transactions
  • Validate input data such as IBAN, BIC, and more
  • Customize character set, version, purpose, and other fields
  • Generate QR code images using the included SEPAQRGenerator and chillerlan/php-qrcode library

Requirements

Installation

Include this library in your project using Composer:

composer require helip/sepaqr

Usage

Here's a basic example of how to use the SEPAQR library:

use Helip\SEPA\SEPA; 

$sepa = new SEPA(
    'WWF-Belgium',     
    'BE88191157467641',     
    5.0, // Amount     
    '',
    'Don en ligne'
);

// QR code as PNG
$sepa->getQR()->savePNG('path', 'qr.png');

Generated QR code from example

License

SEPAQR is licensed under the LGPL-3.0-only License.

Author

References