承接 ccharz/laravel-epc-qr 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ccharz/laravel-epc-qr

最新稳定版本:v3.0.0

Composer 安装命令:

composer require ccharz/laravel-epc-qr

包简介

Laravel EPC-QR-Code Generator for sepa payments

README 文档

README

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

return EPCQR::amount(150) ->receiver('AT000000000000000000', 'ABCDATWW', 'Max Mustermann') ->note('test') ->purpose('AT12') ->text('Test Überweisungstext') ->stream();

To only get the endroid/qr-code result use the build method

$result = EPCQR::amount(150) ->receiver('AT000000000000000000', 'ABCDATWW', 'Max Mustermann') ->note('test') ->purpose('AT12') ->text('Test Überweisungstext') ->build(); // Generate a data URI to include image data inline (i.e. inside an <img> tag) echo $result->getDataUri();

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:

$builder = EPCQR::amount(150) ->receiver('AT000000000000000000', 'ABCDATWW', 'Max Mustermann') ->note('test') ->purpose('AT12') ->text('Test Überweisungstext') ->prepareBuilder(); $result = $builder ->labelText('This is the label') ->build();

If you want to store the output into a file use the save method

return EPCQR::amount(150) ->receiver('AT000000000000000000', 'ABCDATWW', 'Max Mustermann') ->note('test') ->purpose('AT12') ->save('qr.png', 'mydisk');

More Information on EPC QR

TODO

  • EPC Data Validation

License

The MIT License (MIT)

统计信息

  • 总下载量: 11.68k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固