Download the PHP package ccharz/laravel-epc-qr without Composer
On this page you can find all versions of the php package ccharz/laravel-epc-qr. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-epc-qr
Laravel EPC-QR-Code Generator
Library for generating epc qr codes for sepa payments. See https://de.wikipedia.org/wiki/EPC-QR-Code for more information.
QR-Code generation is provided by https://github.com/endroid/qr-code
If you need a more general solution without the dependencies of endroid and laravel have a look at https://github.com/smhg/sepa-qr-data-php
Installation
Require this package in your composer.json and update composer.
composer require ccharz/laravel-epc-qr
Usage
With these methods you can set the sepa payment data, all methods can be chained.
- iban(string $iban)
- bic(string $bic)
- accountOwner(string account_owner)
- receiver(string $iban, string $bic, string $account_owner)
- purpose(string $code): 4 Character Purpose Code
- reference(string $reference): Reconciliation reference (Mutually exclusive with text)
- text(string $text): Reconciliation text
- amount(float $amount, string $currency = 'EUR')
- note(string $note): User note
To stream the output directly to the browser use the stream method
To only get the endroid/qr-code result use the build method
You can use the methods size(int $size)
and margin(int $margin)
to adapt the qr code to your needs. If you need more customisation you can also get the endroid/qr-code builder by using the prepareBuilder() method:
If you want to store the output into a file use the save method
More Information on EPC QR
TODO
- EPC Data Validation
License
The MIT License (MIT)
All versions of laravel-epc-qr with dependencies
endroid/qr-code Version ^4.0
laravel/framework Version ^8.37|^9.0|^10.0|^11.0