Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fellwell5/bezahlcode
Generates SEPA QR-Codes for money transfer
https://github.com/fellwell5/bezahlcode
banking bezahlcode girocode iban money sepa transfer
Last synced: 3 months ago
JSON representation
Generates SEPA QR-Codes for money transfer
- Host: GitHub
- URL: https://github.com/fellwell5/bezahlcode
- Owner: fellwell5
- Created: 2018-04-04T13:47:43.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-11-07T14:40:54.000Z (about 3 years ago)
- Last Synced: 2024-08-02T12:43:04.969Z (6 months ago)
- Topics: banking, bezahlcode, girocode, iban, money, sepa, transfer
- Language: PHP
- Homepage:
- Size: 75.2 KB
- Stars: 23
- Watchers: 5
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - fellwell5/bezahlcode - Generates SEPA QR-Codes for money transfer (others)
README
# Bezahlcode
Generates SEPA QR-Codes for money transfer## Prerequisite
php GD2 extension must be installed
## Get started
Copy "bezahlcode.class.php" and "phpqrcode.php" to your desired location.
"phpqrcode.php" is only needed if you want to generate the QRCodes local, it is possible to use the Google QRcode API.```php
require "bezahlcode.class.php";$bezahlcode = new Bezahlcode("IBAN", "BIC", "bankaccount owner");
$bezahlcode->generatePayload("usage", "amount");
```You can get the code as base 64:
```php
$base64 = $bezahlcode->generateBase64(); // Specified filetypes can be: jpg, png, gif; defaults to jpg
echo "";
```or save the code as image file
```php
$bezahlcode->saveImage("output.jpg");
$bezahlcode->saveImage("output.png", "png"); // Specified filetypes can be: jpg, png, gif; defaults to jpg
```or output the Bezahlcode to the webbrowser
```php
$bezahlcode->outputImage();
$bezahlcode->outputImage("jpg"); // Specified filetypes can be: jpg, png, gif; defaults to jpg
```There are two optional arguments for the constructor.
```php
/**
* @param string $iban
*
* @param string $bic
*
* @param string $name Name of the bank account owner.
*
* @param string $qrprovider (optional)
* Defaults to 'phpqrcode'.
* options are 'phpqrcode' or 'google'
*
* @param boolean $use_frame (optional) Use Bezahlcode-Frame around the QRcode. Defined by the public variable $base64_frame
*/
$bezahlcode = new Bezahlcode("IBAN", "BIC", "bankaccount owner", "phpqrcode", true);
```# API
If you don't want to install the class, you can also use our api:
https://dev.matthiasschaffer.com/bezahlcode/api.php?iban=[IBAN]&bic=[BIC]&name=[bankaccountowner]&usage=[usage]&amount=[amount]