定制 fontis/bpay-ref-generator 二次开发

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

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

fontis/bpay-ref-generator

最新稳定版本:2.0.1

Composer 安装命令:

composer require fontis/bpay-ref-generator

包简介

Generate BPAY customer reference numbers

README 文档

README

This package provides a convenient way of generating customer reference numbers for BPAY. There are functions to calculate reference numbers based on both the MOD 10 Version 1 and MOD 10 Version 5 algorithms.

The recommended way to install this package is using Composer. If you don't already have Composer installed, you can install it using the instructions mentioned on the Composer documentation. Once you have composer installed, just install it like so:

composer require fontis/bpay-ref-generator 1.0.*

Using this package is very simple. Instantiate an instance of the Generator class like so:

use Fontis\BpayRefGenerator\Generator;

$generator = new Generator();

Then call the appropriate method based on which algorithm you want to use. For MOD 10 Version 1:

$ref = $generator->calcMod10V1("10000456");
// 100004563

For MOD 10 Version 5:

$ref = $generator->calcMod10V5("40007923");
// 400079231

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 10
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2016-01-28