PHPackages                             joelwmale/php-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. [File &amp; Storage](/categories/file-storage)
4. /
5. joelwmale/php-aba

ActiveLibrary[File &amp; Storage](/categories/file-storage)

joelwmale/php-aba
=================

Provides a simple way to generate an ABA file for batch transactions

1.0.1(1y ago)0925↓50%[4 PRs](https://github.com/joelwmale/php-aba/pulls)MITPHPPHP &gt;=8.2CI passing

Since Feb 28Pushed 1mo ago1 watchersCompare

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

READMEChangelog (2)Dependencies (5)Versions (9)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3a7f03d5390d83b44f2d22bfeaca943c56f35b52e84d7d5febae6ec44e0d9633/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6f656c776d616c652f7068702d6162612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/joelwmale/php-aba)[![GitHub Tests Action Status](https://camo.githubusercontent.com/dee0404f271b222221f4f3cb41143a8954a97d8bae698558cf178f7cf25ec8e9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6f656c776d616c652f7068702d6162612f74657374732e796d6c3f6272616e63683d6d6173746572266c6162656c3d5465737473)](https://github.com/joelwmale/php-aba/actions?query=workflow%3ATests+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/2acdbd595e9ee05b50e3b5f9101f75741bca3f74ae40561bc2d99eaad064c0cf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6f656c776d616c652f7068702d6162612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/joelwmale/php-aba)[![GitHub last commit](https://camo.githubusercontent.com/34dc6b261678ce2bc6ef1f28283bdd9cb34be863c732c2a976b3fa4f91963666/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f6a6f656c776d616c652f7068702d616261)](#)[![License](https://camo.githubusercontent.com/cfb201e117664cbd49eb7d9c58b18e9ef313e3c68a156bb093c477ba22ee179e/68747470733a2f2f706f7365722e707567782e6f72672f6a6f656c776d616c652f7068702d6162612f6c6963656e73652e737667)](https://packagist.org/packages/joelwmale/php-aba)[![Free](https://camo.githubusercontent.com/7f1fea4e71e3678999eb224f1e7295df2fced95120fef0b5701c652b56440c13/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f667265655f666f725f6e6f6e5f636f6d6d65726369616c5f7573652d627269676874677265656e)](#-license)

PHP ABA
=======

[](#php-aba)

Provides a simple way to generate an ABA file which can be used to mass import payments into Australian banks.

Features
--------

[](#features)

- Simple API
- Laravel support via a service provider and facade
- Framework agnostic

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

[](#requirements)

- PHP 8+

🚀 Getting Started
-----------------

[](#-getting-started)

### 🔥 Installing

[](#-installing)

Install the package through [Composer](http://getcomposer.org/).

`composer require joelwmale/php-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.

```
Joelwmale\PhpAba\AbaServiceProvider::class
```

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

```
'Aba' => Joelwmale\PhpAba\Facades\Aba::class,
```

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

🧑‍🍳 Demo
--------

[](#‍-demo)

```
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();
```

📚 Documentation
---------------

[](#-documentation)

### Mutiple transactions

[](#mutiple-transactions)

```
$transactions = [
    [
        'bsb' => '111-111',
        'account_number' => '999999999',
        'account_name' => 'John Doe',
        'reference' => 'Wages',
        'remitter' => 'ACME Company',
        'transaction_code' => '53',
        'trace_bsb' => '222-222',
        'trace_account_number' => '888888888',
        'amount' => '250.87'
    ],
    [
        'bsb' => '222-2222',
        'account_number' => '888888888',
        'account_name'  => 'Jane Doe',
        'reference' => 'Salary',
        'remitter' => 'ACME Company',
        'transaction_code'  => '50',
        'trace_bsb' => '222-222',
        'trace_account_number' => '888888888',
        'amount' => '300.01'
    ]
];

$aba->addTransactions($transaction);

$aba->generate();
```

### Notes

[](#notes)

#### Field Descriptions &amp; Values

[](#field-descriptions--values)

   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: Wages.   Trace BSB The trace BSB must be in the format XXX-XXX.   Trace account number The trace account number must be up to 9 digits.   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)

-
-

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance70

Regular maintenance activity

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~26 days

Total

2

Last Release

418d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9bee9935aeef3432dfbdbc6356ac4a5426aa6b22d67d15747bfb341c6ad62689?d=identicon)[joelwmale](/maintainers/joelwmale)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (85 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (85 commits)")[![joelwmale](https://avatars.githubusercontent.com/u/3906839?v=4)](https://github.com/joelwmale "joelwmale (9 commits)")

---

Tags

abaAustralian Bankers AssociationBatch transactionsLaravel aba

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php-laravel

A simple Laravel 9/10/11/12/13 service provider for including the AWS SDK for PHP.

1.7k35.6M75](/packages/aws-aws-sdk-php-laravel)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[stechstudio/laravel-zipstream

A fast and simple streaming zip file downloader for Laravel.

4633.7M3](/packages/stechstudio-laravel-zipstream)[spatie/laravel-google-cloud-storage

Google Cloud Storage filesystem driver for Laravel

2408.9M13](/packages/spatie-laravel-google-cloud-storage)[farhanshares/laravel-mediaman

MediaMan - The most elegant &amp; powerful media management package for Laravel!

293.7k](/packages/farhanshares-laravel-mediaman)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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