2017 © Pedro Peláez
 

library nacha-file-generator

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

image

cvtrust/nacha-file-generator

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

  • Thursday, January 11, 2018
  • by chadw
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 11 Forks
  • 0 Open issues
  • 14 Versions
  • 0 % Grown

The README.md

Build Status, (*1)

NACHA File Generator

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

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, (*3)

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., (*4)

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, (*5)

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., (*6)

The Versions

11/01 2018

dev-master

9999999-dev

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

  Sources   Download

MIT

The Development Requires

11/01 2018

1.9.1

1.9.1.0

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

  Sources   Download

MIT

The Development Requires

11/01 2018

dev-fix-batch-footer-field-types

dev-fix-batch-footer-field-types

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

  Sources   Download

MIT

The Development Requires

13/10 2017

dev-1.x-dev

dev-1.x-dev

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

  Sources   Download

GPL-3.0+

The Development Requires

13/10 2017

1.9.0

1.9.0.0

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

  Sources   Download

GPL-3.0+

The Development Requires

25/08 2017

1.8

1.8.0.0

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

  Sources   Download

GPL-3.0+

The Development Requires

25/08 2017

1.7

1.7.0.0

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

  Sources   Download

GPL-3.0+

The Development Requires

02/02 2017

1.6

1.6.0.0

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

  Sources   Download

GPL-3.0+

The Development Requires

24/01 2017

1.5

1.5.0.0

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

  Sources   Download

GPL-3.0+

The Development Requires

12/10 2016

1.4

1.4.0.0

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

  Sources   Download

GPL-3.0+

The Development Requires

06/04 2016

1.3

1.3.0.0

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

  Sources   Download

GPL-3.0+

The Development Requires

23/11 2015

1.2

1.2.0.0

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

  Sources   Download

GPL-3.0+

The Development Requires

17/09 2015

1.1

1.1.0.0

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

  Sources   Download

GPL-3.0+

The Development Requires

15/09 2015

1.0

1.0.0.0

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

  Sources   Download

GPL-3.0+

The Development Requires