承接 ivanhosgood/aba-file-generator 相关项目开发

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

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

ivanhosgood/aba-file-generator

Composer 安装命令:

composer require ivanhosgood/aba-file-generator

包简介

Generate ABA bank transaction files from a collection of transactions. Forked from simonblee/aba-file-generator

README 文档

README

Notes

The ABA format provided @ simonblee/aba-file-generator does not match specification as described at: https://www.commbank.com.au/content/dam/robohelp/PDFS/commbiz_direct_credit_debit.pdf https://www.cemtexaba.com/aba-format/cemtex-aba-file-format-details https://www.nab.com.au/content/dam/nabconnectcontent/file-formats/NAB%20Connect%20Consolidated%20File%20Format%20Specification_V0.05.pdf

Descriptive record does not contain BSB or account #. These fields (2-18) are to be left blank

Overview

Generates an aba file for bulk banking transactions with Australian banks.

License

MIT License

Installation

Copy the files where needed or install via composer:

composer require ivanhosgood/aba-file-generator

Usage

Create a generator object with the descriptive type information for this aba file:

use AbaFileGenerator\Model\Transaction;
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:

$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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-06-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固