qedv/bcd 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

qedv/bcd

最新稳定版本:0.3.0

Composer 安装命令:

composer require qedv/bcd

包简介

BCD Payment-QR-Code

README 文档

README

This library provides a simple way to create a payment QR-code e.g. for invoices conforming to the EPC QR-Code standard.

Advantages

  • Provides easy and convenient payment for users, reducing typos
  • Easy-to-use, object-oriented library
  • High test coverage
  • Open-Source (LGPL-3.0)

Requirements

  • PHP 7.1 or higher
  • GD or Imagick extension for creating the QR-Code

Installation

The recommended way to install the BCD library is via composer.

"require": {
    "qedv/bcd": "0.2.*"
}

Usage examples

require_once('vendor/autoload.php');

use Qedv\Tools\Bcd\Bill;
use Qedv\Tools\Bcd\BillToStringConverter;

$bill = new Bill();
$bill->setVersion(Bill::VERSION_2); // optional, as version 2 is the default
$bill->setReceiverName('Umbrella Corp.');
$bill->setIban('AT932236200123456789');
$bill->setAmount('EUR1337.99');
$bill->setPaymentReference('R2020/1938');
$bill->setReasonForPayment('Handshakomat Über 3000');

$converter = new BillToStringConverter();
$qrText = $converter->convert($bill);
// The $qrText can now be used in any QR-code generation library, e.g. using TCPDFs barcodes.

Tests

The test suite can be run with vendor/bin/phpunit tests.

Contributing

Contributions to the BCD library are highly welcome. Please conform to the PSR-12 coding standard and provide tests for your code.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0-only
  • 更新时间: 2025-03-20