定制 cvtrust/nacha-file-generator 二次开发

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

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

cvtrust/nacha-file-generator

最新稳定版本:1.9.1

Composer 安装命令:

composer require cvtrust/nacha-file-generator

包简介

Easy to use NACHA file generation for PPD/CCD transactions. Modeled using NACHA documentation.

README 文档

README

Build Status

NACHA File Generator

Based on documentation from NACHA: https://www.nacha.org/system/files/resources/AAP201%20-%20ACH%20File%20Formatting.pdf

Install With Composer

{ "require" : { "nacha/file-generator" : "1.9.*" } } 

Usage

<?php use Nacha\File; use Nacha\Batch; use Nacha\Record\DebitEntry; use Nacha\Record\CcdEntry; // Create the file and set the proper header info $file = new File(); $file->setImmediateDestination('051000033') ... ->setReferenceCode('MYCODE'); // Create a batch and add some entries $batch = new Batch(); $batch->getHeader() ... ->setOriginatingDFiId('01021234'); $batch->addDebitEntry((new DebitEntry) ... ->setTraceNumber('99936340', 1)); $file->addBatch($batch); // completed file ready for output $output = (string)$file;

For complete examples see test/Nacha/FileTest.php

Tests

$ ./vendor/bin/phpunit -c test/ci.xml 

Todos

There is limited validation for field inputs. Strings that are too long will be truncated. Required/mandatory fields are currently not enforced.

Other missing elements:

  • Addenda support added in v1.9+
  • BOC, ARC, POP Entry records
  • Corporate Trade Exchange Entries
  • Point of Sale Entries
  • Notification of Change Entry (COR)
  • Return entries

Support for the above elements should be rather easy to implement, as the models were built with them in mind. Put in a pull request if you have an immediate need for one of the above features.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固