2017 © Pedro Peláez
 

library bezahlcode

BezahlCode Generator Library

image

mjaschen/bezahlcode

BezahlCode Generator Library

  • Saturday, July 7, 2018
  • by marcusj
  • Repository
  • 2 Watchers
  • 6 Stars
  • 1,139 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 7 Versions
  • 16 % Grown

The README.md

BezahlCode PHP Library

Bezahlcode Tests Latest Stable Version, (*1)

Introduction

BezahlCode is a PHP library for creating BezahlCode QR-Code images and URIs., (*2)

Table of Contents

Requirements

BezahlCode requires at least PHP 8.2., (*3)

If you're using an older PHP version, you can install:, (*4)

  • BezahlCode 3.x which is compatible to PHP versions >= 7.3 or
  • BezahlCode 2.x which is compatible to PHP versions >= 7.1 or
  • BezahlCode 1.x which is compatible to PHP versions >= 5.3.

Installation

BezahlCode is installed via Composer:, (*5)

Just add it to your composer.json by running:, (*6)

composer require mjaschen/bezahlcode

Usage

SEPA Transfer

Output a BezahlCode image directly to the browser:, (*7)

``` php <?php, (*8)

use MarcusJaschen\BezahlCode\Type\SepaTransfer;, (*9)

$bezahlCode = new SepaTransfer();, (*10)

$bezahlCode->setTransferData( "Marcus Jaschen", "DE12345678901234567890", "SPARDEFFXXX", 99.99, "Test SEPA Transfer" );, (*11)

header('Content-type: image/png'); echo $bezahlCode->getBezahlCode('png');, (*12)


Save a BezahlCode image to a file: ``` php <?php use MarcusJaschen\BezahlCode\Type\SepaTransfer; $bezahlCode = new SepaTransfer(); $bezahlCode->setTransferData( "Marcus Jaschen", "DE12345678901234567890", "SPARDEFFXXX", 99.99, "Test SEPA Transfer" ); $file = sys_get_temp_dir() . DIRECTORY_SEPARATOR . "bezahlcode_test.svg"; $bezahlCode->saveBezahlCode($file, 'svg');

Get BezahlCode URI:, (*13)

``` php <?php, (*14)

use MarcusJaschen\BezahlCode\Type\SepaTransfer;, (*15)

$bezahlCode = new SepaTransfer();, (*16)

$bezahlCode->setTransferData( "Marcus Jaschen", "DE12345678901234567890", "SPARDEFFXXX", 99.99, "Test SEPA Transfer" );, (*17)

echo $bezahlCode->getBezahlCodeURI();, (*18)


### Classic Transfer Output a BezahlCode image directly to the browser: ``` php <?php use MarcusJaschen\BezahlCode\Type\Transfer; $bezahlCode = new Transfer(); $bezahlCode->setTransferData( "Marcus Jaschen", "1234567890", "10050000", 99.99, "Test Classic Transfer" ); header('Content-type: image/png'); echo $bezahlCode->getBezahlCode();

Saving a BezahlCode to a file and getting the BezahlCode URI works as described in the SEPA Transfer section., (*19)

Other Types

  • Periodic Transfer
  • Periodic SEPA Transfer
  • Direct Debit
  • SEPA Direct Debit

Bugs / To Do

  • TODO: implement missing authorities (contact, contactv2)
  • TODO: write more Tests

Credits

The Versions

07/07 2018

dev-feat_2.0

dev-feat_2.0 https://github.com/mjaschen/bezahlcode

BezahlCode Generator Library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment qrcode bezahlcode

13/03 2015

dev-master

9999999-dev https://github.com/mjaschen/bezahlcode

BezahlCode Generator Library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment qrcode bezahlcode

07/04 2014

1.0.1

1.0.1.0 https://github.com/mjaschen/bezahlcode

BezahlCode Generator Library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment qrcode bezahlcode

02/03 2014

1.0.0

1.0.0.0 https://github.com/mjaschen/bezahlcode

BezahlCode Generator Library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment qrcode bezahlcode

25/02 2014

0.2.0

0.2.0.0 https://github.com/mjaschen/bezahlcode

BezahlCode Generator Library

  Sources   Download

MIT

The Requires

 

payment qrcode bezahlcode

08/10 2013

0.1.1

0.1.1.0 https://github.com/mjaschen/bezahlcode

BezahlCode Generator Library

  Sources   Download

MIT

The Requires

 

payment qrcode bezahlcode

08/10 2013

0.1.0

0.1.0.0 https://github.com/mjaschen/bezahlcode

BezahlCode Generator Library

  Sources   Download

MIT

The Requires

 

payment qrcode bezahlcode