承接 ion-bazan/pl-qr-payment 相关项目开发

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

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

ion-bazan/pl-qr-payment

最新稳定版本:v2.1.0

Composer 安装命令:

composer require ion-bazan/pl-qr-payment

包简介

This library helps you generate payment QR codes for Polish bank mobile applications

README 文档

README

Latest Stable Version Build Status Codecov Mutation testing badge Total Downloads Monthly Downloads License

This library helps you generate payment QR codes for Polish bank mobile applications. This is useful in invoice generators, etc to let your customers pay event faster ????.

Makes use of endroid/qr-code for QR-code generation but you can use any library, because the QR string is available via getQrString() method.

Please note, that this library is only suitable for Polish bank systems

Installation

Use Composer to install the library.

composer require ion-bazan/pl-qr-payment

Minimal usage example

use IonBazan\PaymentQR\Poland\QrPayment; $payment = new QrPayment( '4249000050026313017364142', // Account number 'Testowy odbiorca', // Recipient name 'Tytuł płatności', // Payment title 12345 // Amount in gr ); /** @var \Endroid\QrCode\QrCode $qrCode */ $qrCode = $payment->getQrCode(); // Do anything you want with the QrCode object header('Content-Type: '.$qrCode->getContentType()); echo $qrCode->writeString();

Advanced usage

use IonBazan\PaymentQR\Poland\QrPayment; $payment = new QrPayment( '4249000050026313017364142', // Account number 'Testowy odbiorca', // Recipient name 'Tytuł płatności', // Payment title 12345, // Amount in gr '5214349636', // Recipient NIP (optional) 'PL', // Country code (only PL is supported) (optional) '11223344', // Customer ID for Direct Debit (optional) '990066' // Invoobill ID (optional) ); $qrString = $payment->getQrString(); // You can encode it using the QR library of your choice ... echo $qrString; // ... or just print it for debug

Validation

Currently, this library does not offer any fancy validation. It tries to stop you from breaking things by stripping invalid characters but don't expect too much. You should already have your data valid before generating the QR code.

Footnotes

This library is a quick approach to implement so called Rekomendacja Związku Banków Polskich dotycząca kodu dwuwymiarowego („2D”), umożliwiającego realizację polecenia przelewu oraz aktywację usług bankowych na rynku polskim - wersja 1.0

According to that document, QR codes should have following parameters:

Parameter Value
Type QR
Size 250 px (min. 1.8 cm x 1.8 cm)
Error Correction Low (L)
Encoding UTF-8

License

This library is under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固