helip / sepaqr
Class to to generate a SEPA Quick Response (QR) code
v0.9.1
2023-06-16 20:28 UTC
Requires
- php: >=7.4
- chillerlan/php-qrcode: ^4.3
Requires (Dev)
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
- PHP 7.4 or higher
- chillerlan/php-qrcode ^4.3
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');
License
SEPAQR is licensed under the LGPL-3.0-only License.