fontis / bpay-ref-generator
Generate BPAY customer reference numbers
Installs: 16 940
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 10
Forks: 5
Open Issues: 0
Requires
- php: >=7.0
Requires (Dev)
- phpunit/phpunit: ^6.4
This package is auto-updated.
Last update: 2022-12-20 07:34:53 UTC
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