PHPackages                             anam/aba - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. anam/aba

ActiveLibrary[Payment Processing](/categories/payments)

anam/aba
========

Provides a simple way to generate an ABA file which is used by banks to allow for batch transactions.

v1.0.1(9y ago)8154.6k↑69.4%3MITPHPPHP &gt;=5.4.0

Since Jun 27Pushed 9y ago2 watchersCompare

[ Source](https://github.com/anam-hossain/aba)[ Packagist](https://packagist.org/packages/anam/aba)[ Docs](https://github.com/anam-hossain/aba)[ RSS](/packages/anam-aba/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

ABA
===

[](#aba)

Provides a simple way to generate an ABA file which is used by banks to allow for batch transactions.

Features
--------

[](#features)

- Simple API
- Framework agnostic

Requirements
------------

[](#requirements)

- PHP 5.4+

Installation
------------

[](#installation)

`Aba` is available via Composer

```
$ composer require anam/aba
```

Integrations
------------

[](#integrations)

##### Laravel integrations

[](#laravel-integrations)

Although `Aba` is framework agnostic, it does support Laravel out of the box and comes with a Service provider and Facade for easy integration.

After you have installed the `Aba`, open the `config/app.php` file which is included with Laravel and add the following lines.

In the `$providers` array add the following service provider.

```
Anam\Aba\AbaServiceProvider::class
```

Add the facade of this package to the `$aliases` array.

```
'Aba' => Anam\Aba\Facades\Aba::class,
```

You can now use this facade in place of instantiating the converter yourself in the following examples.

Usage
-----

[](#usage)

```
use Anam\Aba\Aba;

$aba = new Aba();

// Descriptive record or file header
// The header information is included at the top of every ABA file
// and is used to describe your bank details.
$aba->addFileDetails([
    'bank_name' => 'CBA', // bank name
    'user_name' => 'Your account name', // Account name
    'bsb' => '062-111', // bsb with hyphen
    'account_number' => '101010101', // account number
    'remitter' => 'Name of remitter', // Remitter
    'user_number' => '301500', // User Number (as allocated by APCA). The Commonwealth bank default is 301500
    'description' => 'Payroll', // description
    'process_date'  => '270616' // DDMMYY - Date to be processed
]);

// Add a transaction or Detail record
$aba->addTransaction([
    'bsb' => '111-111', // bsb with hyphen
    'account_number' => '999999999',
    'account_name'  => 'Jhon doe',
    'reference' => 'Payroll number',
    'transaction_code'  => '53',
    'amount' => '250.87'
]);

$abaFileContent = $aba->generate(); // Generate ABA string.

$aba->download();
```

###### Mutiple transactions

[](#mutiple-transactions)

```
$transactions = [
    [
        'bsb' => '111-111', // bsb with hyphen
        'account_number' => '999999999',
        'account_name'  => 'Jhon doe',
        'reference' => 'Payroll number',
        'transaction_code'  => '53',
        'amount' => '250.87'
    ],
    [
        'bsb' => '222-2222', // bsb with hyphen
        'account_number' => '888888888',
        'account_name'  => 'Foo Bar',
        'reference' => 'Rent',
        'transaction_code'  => '50',
        'amount' => '300'
    ]
];

foreach ($transactions as $transaction) {
    $aba->addTransaction($transaction);
}

$aba->generate();

$aba->download("Multiple-transactions");
```

#### Laravel example

[](#laravel-example)

```
use Aba;

// Descriptive record or file header
// The header information is included at the top of every ABA file
// and is used to describe your bank details.
Aba::addFileDetails([]);

Aba::addTransaction([]);

Aba::generate();

Aba::download();
```

#### Appendix

[](#appendix)

##### Validation

[](#validation)

   Field Description   Bank name Bank name must be 3 characters long and Capitalised. For example: CBA   BSB The valid BSB format is XXX-XXX.   Account number Account number must be up to 9 digits.   User name (Descriptive record) User or preferred name must be letters only and up to 26 characters long.   Account name (Detail record) Account name must be BECS characters only and up to 32 characters long.   User number User number which is allocated by APCA must be up to 6 digits long. The Commonwealth bank default is 301500.   Description (Descriptive record) Description must be up to 12 characters long and letters only.   Reference (Detail record) The reference must be BECS characters only and up to 18 characters long. For example: Payroll number.   Remitter The remitter must be letters only and up to 16 characters long.  ##### Transaction codes

[](#transaction-codes)

   Code Transaction Description   13 Externally initiated debit items   50 Externally initiated credit items with the exception of those bearing Transaction Codes   51 Australian Government Security Interest   52 Family Allowance   53 Pay   54 Pension   55 Allotment   56 Dividend   57 Debenture/Note Interest  Reference
---------

[](#reference)

- [http://www.apca.com.au/docs/default-source/payment-systems/becs\_procedures.pdf](http://www.apca.com.au/docs/default-source/payment-systems/becs_procedures.pdf)
- [https://www.commbank.com.au/content/dam/robohelp/PDFS/commbiz\_direct\_credit\_debit.pdf](https://www.commbank.com.au/content/dam/robohelp/PDFS/commbiz_direct_credit_debit.pdf)
-

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~49 days

Total

2

Last Release

3563d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b25d92dbbd1d034062645eb371dcc2b04a5f686cedfde6ad7cde87f76ad9dcbf?d=identicon)[anam](/maintainers/anam)

---

Top Contributors

[![anam-hossain](https://avatars.githubusercontent.com/u/5017268?v=4)](https://github.com/anam-hossain "anam-hossain (31 commits)")

---

Tags

abaABA fileAustralian Bankers AssociationBatch transactions

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/anam-aba/health.svg)

```
[![Health](https://phpackages.com/badges/anam-aba/health.svg)](https://phpackages.com/packages/anam-aba)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/braintree

Braintree gateway for Omnipay payment processing library

35558.0k3](/packages/omnipay-braintree)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
