承接 victor-renan/pixgenerator 相关项目开发

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

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

victor-renan/pixgenerator

最新稳定版本:v1.0.1

Composer 安装命令:

composer require victor-renan/pixgenerator

包简介

A static PIX (copy and paste) generator

README 文档

README

A library with no-dependency for generating PIX copy-and-paste codes for static QR Codes. Based on Pix Manual Reference By the BCB (Banco Central do Brasil).

Installation

Latest version via Packagist:

composer require victor-renan/pixgenerator

Usage

Getting Started

<?php
// Import the PixGenerator class
use VictorRenan\PixGenerator\PixGenerator;

// Creates an instance using your Pix key
$generator = new PixGenerator('<PixKey>');

// Create the static code
$code = $generator->getCode()

Customizing the generated code

// ...

// Sets the transaction amount
$generator->setTransactionAmount(1.00);

// Sets the transaction id
$generator->setTransactionId('txId');

// Sets the merchant name
$generator->setMerchantName('Jonh Doe');

// Sets the merchant city
$generator->setMerchantCity('Brasilia');

// Sets additional info message
$generator->setAdditionalInfo('Message');

Testing

Clone this repoitory and install the dev-dependencies via Composer. After this, you can run PHPUnit:

./vendor/bin/phpunit

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-13