定制 leongrdic/pdf417-hub3 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

leongrdic/pdf417-hub3

最新稳定版本:1.1.0

Composer 安装命令:

composer require leongrdic/pdf417-hub3

包简介

README 文档

README

Small wrapper lib around php-pdf417 that helps construct a payment barcode for Croatian banks, based on HUB3 specification.

Requires PHP 8.1+

Usage

$data = new \Le\PaymentBarcodeGenerator\Data(
    payer: new \Le\PaymentBarcodeGenerator\Party(
        name: 'Marko Markić',
        address: 'Zagrebačka cesta 1',
        city: 'Zagreb',
    ),
    payee: new \Le\PaymentBarcodeGenerator\Party(
        name: 'Tvrtka d.o.o.',
        address: 'Zagrebačka avenija 1', 
        city: 'Zagreb',
    ),
    iban: 'HR1234567890123456789',
    currency: 'EUR',
    amount: 999, // 9.99
    model: 'HR00',
    reference: '123-4567',
    code: 'COST',
    description: 'Uplata',
);

$generator = new \Le\PaymentBarcodeGenerator\Generator(
    pdf417: new \Le\PDF417\PDF417(),
    renderer: new \Le\PDF417\Renderer\SvgRenderer([
        'color' => 'black',
        'scale' => 5,
    ]),
);

$generator->render($data);

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-14