Download the PHP package hubipe/huqrpayment without Composer
On this page you can find all versions of the php package hubipe/huqrpayment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hubipe/huqrpayment
More information about hubipe/huqrpayment
Files in hubipe/huqrpayment
Package huqrpayment
Short Description QR payment library for Hungary (according to the Magyar Nemzeti Bank standard version 001)
License MIT
Homepage https://github.com/hubipe/QrPaymentHU
Informations about the package huqrpayment
QR code payment by Hungarian MNB standard
Library to generate QR payment codes for Hungarian banks (standard by Hungarian national bank (MNB)). This library was copied and modified from the rikudou's EU QR Payment
See the standard
See also QR code payment generator for Czech, Slovak or European Union accounts.
Installation
Via composer: composer require hubipe/huqrpayment
Usage
In the constructor you must supply IBAN which may be a string
or an instance of hubipe\HuQrPayment\Iban\IbanInterface
.
Example with string:
Example with base IBAN class:
The IbanInterface
is useful in case you want to create an
adapter that transforms your local format (BBAN) to IBAN.
This package already contains Adapter for Hungarian account numbers:
Setting payment details
All payment details can be set via setters:
QR Code image
This library provides many implementations of QR code image using its sister library
rikudou/qr-payment-qr-code-provider. If any supported
QR code generating library is installed, the method getQrCode()
will return an instance of
\Rikudou\QrPaymentQrCodeProvider\QrCode
which can be used to get an image containing the generated QR payment data.
All versions of huqrpayment with dependencies
ext-mbstring Version *
rikudou/iban Version ^1.2
rikudou/qr-payment-interface Version ^1.1
rikudou/qr-payment-qr-code-provider Version ^1.1