bruno-rodrigues/aba-file-generator
最新稳定版本:v1.0.1
Composer 安装命令:
composer require bruno-rodrigues/aba-file-generator
包简介
Generate ABA bank transaction files from a collection of transactions. Forked from simonblee/aba-file-generator
README 文档
README
Overview
Generates an aba file for bulk banking transactions with Australian banks.
License
Installation
Copy the files where needed or install via composer:
composer require bruno-rodrigues/aba-file-generator
Usage
Create a generator object with the descriptive type information for this aba file:
use AbaFileGenerator\Generator\AbaFileGenerator; $generator = new AbaFileGenerator( '123-456', // bsb '12345678', // account number 'CBA', // bank name 'User Name', 'Remitter', '175029', // direct entry id for CBA 'Payroll' // description ); // Set a custom processing date if required $generator->setProcessingDate('tomorrow');
Create an object or array of objects implementing AbaFileGenerator\Model\TransactionInterface. A simple Transaction object
is provided with the library but may be too simple for your project:
use AbaFileGenerator\Model\Transaction; $transaction = new Transaction(); $transaction->setAccountName(...); $transaction->setAccountNumber(...); $transaction->setBsb(...); $transaction->setTransactionCode(...); $transaction->setReference(...); $transaction->setAmount(...);
Generate the aba string and save into a file (or whatever else you want):
$abaString = $generator->generate($transaction); // $transaction could also be an array here file_put_contents('/my/aba/file.aba', $abaString);
References
统计信息
- 总下载量: 11.72k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-07-21