1. Go to this page and download the library: Download joelwmale/php-aba library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
joelwmale / php-aba example snippets
Joelwmale\PhpAba\AbaServiceProvider::class
'Aba' => Joelwmale\PhpAba\Facades\Aba::class,
use Joelwmale\PhpAba\PhpAba;
$aba = new PhpAba();
// descriptive record or file header
$aba->addFileDetails([
'bank_name' => 'ANZ', // bank name
'user_name' => 'John Doe', // account name or company
'user_number' => '301500', // user number (as allocated by APCA).
'description' => 'Payroll', // description
'process_date' => '010125' // DDMMYY - date for it to be processed by the bank
]);
// now you can add transactions
$aba->addTransaction([
'bsb' => '111-111',
'account_number' => '999999999',
'account_name' => 'John Doe',
'reference' => 'Payroll',
'remitter' => 'ACME Company',
'trace_bsb' => '222-222', // the originating bank bsb
'trace_account_number' => '888888888', // the originating bank account number
'transaction_code' => '53', // see below for transaction codes
'amount' => '250.87' // must be in whole dollars
]);
// generate the ABA file
$abaFileContent = $aba->generate();