PHPackages                             glutnix/nz-bank-account-validation - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. glutnix/nz-bank-account-validation

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

glutnix/nz-bank-account-validation
==================================

A library that validates New Zealand bank account numbers (BECS numbers) as matching the format, within valid ranges, and contain a valid checksum.

0.1.1(10y ago)1169.3k↓12.7%3[3 issues](https://github.com/Glutnix/nz-bank-account-validation/issues)[1 PRs](https://github.com/Glutnix/nz-bank-account-validation/pulls)MITPHP

Since Nov 19Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Glutnix/nz-bank-account-validation)[ Packagist](https://packagist.org/packages/glutnix/nz-bank-account-validation)[ RSS](/packages/glutnix-nz-bank-account-validation/feed)WikiDiscussions master Synced 1mo ago

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

NZ Bank Account Validation for PHP
==================================

[](#nz-bank-account-validation-for-php)

[![Latest Stable Version](https://camo.githubusercontent.com/a2f18a8cec68fac07596054e6e12c84af6d1040a7568397b9ce3864d74f7ea6c/68747470733a2f2f706f7365722e707567782e6f72672f676c75746e69782f6e7a2d62616e6b2d6163636f756e742d76616c69646174696f6e2f762f737461626c65)](https://packagist.org/packages/glutnix/nz-bank-account-validation)[![Latest Unstable Version](https://camo.githubusercontent.com/a74250a6e352cf4c4a8f7bb4c542aaea3e7946d9554555bc9c4a5a8abc1e6061/68747470733a2f2f706f7365722e707567782e6f72672f676c75746e69782f6e7a2d62616e6b2d6163636f756e742d76616c69646174696f6e2f762f756e737461626c65)](https://packagist.org/packages/glutnix/nz-bank-account-validation)[![Total Downloads](https://camo.githubusercontent.com/dcb671a594349ac25cd2495a37b328557aea723070dc527d002a4d7728fcacd7/68747470733a2f2f706f7365722e707567782e6f72672f676c75746e69782f6e7a2d62616e6b2d6163636f756e742d76616c69646174696f6e2f646f776e6c6f616473)](https://packagist.org/packages/glutnix/nz-bank-account-validation)[![License](https://camo.githubusercontent.com/3d689615ed126aeb5137fd96c39ecedc05eff6a2d91f1902e6c26964aebc6f34/68747470733a2f2f706f7365722e707567782e6f72672f676c75746e69782f6e7a2d62616e6b2d6163636f756e742d76616c69646174696f6e2f6c6963656e7365)](https://packagist.org/packages/glutnix/nz-bank-account-validation)[![Build Status](https://camo.githubusercontent.com/30086a44e267800f1b13bd77d2b48cd1e9bf004e48f9acd1a0989f7f90737406/68747470733a2f2f7472617669732d63692e6f72672f476c75746e69782f6e7a2d62616e6b2d6163636f756e742d76616c69646174696f6e2e737667)](https://travis-ci.org/Glutnix/nz-bank-account-validation)

A PHP library that validates New Zealand bank account numbers (BECS numbers) as matching the format, within valid ranges, and contain a valid checksum.

Licence
-------

[](#licence)

MIT

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

[](#requirements)

- PHP 5.4+

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

[](#installation)

Using Composer:

```
composer require glutnix/nz-bank-account-validation
```

Alternatively, download the contents of this repository into your project and require the class manually, like a caveman.

Usage
-----

[](#usage)

```
$account = new \Glutnix\BankAccountValidator("01-902-0068389-00");
echo $account->isValid() ? "Valid" : "Not Valid";
```

There are other usable methods on BankAccountValidator, so check the code: check the spec for how they are used. Maybe contribute some documentation?

Contributing
------------

[](#contributing)

Open an issue to check if your contribution is desirable, or just go right ahead and send a Pull Request against the master branch.

- Code must be PSR-2 compliant; PHP Code Sniffer and editorconfig settings are included for your convenience.
- Passing PHPSpec tests required to cover any new code.

TODO
----

[](#todo)

- Full-featured Documentation
- Optionally use PaymentsNZ Bank Branch Register to validate against currently open banks and branches.

References
----------

[](#references)

- [PaymentsNZ Bulk Electronic Clearing System (BECS) Register](http://www.paymentsnz.co.nz/clearing-systems/bulk-electronic-clearing-system)
- [IRD - Validating Bank Account Numbers](https://www.ird.govt.nz/resources/d/8/d8e49dce-1bda-4875-8acf-9ebf908c6e17/rwt-nrwt-spec-2014.pdf)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

3834d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/88983?v=4)[Brett Taylor](/maintainers/Glutnix)[@Glutnix](https://github.com/Glutnix)

---

Top Contributors

[![Glutnix](https://avatars.githubusercontent.com/u/88983?v=4)](https://github.com/Glutnix "Glutnix (10 commits)")

---

Tags

validationBankfinancenew zealandBank accountBECS

### Embed Badge

![Health badge](/badges/glutnix-nz-bank-account-validation/health.svg)

```
[![Health](https://phpackages.com/badges/glutnix-nz-bank-account-validation/health.svg)](https://phpackages.com/packages/glutnix-nz-bank-account-validation)
```

###  Alternatives

[composer/semver

Version comparison library that offers utilities, version constraint parsing and validation.

3.3k489.6M672](/packages/composer-semver)[giggsey/libphonenumber-for-php

A library for parsing, formatting, storing and validating international phone numbers, a PHP Port of Google's libphonenumber.

5.0k148.7M416](/packages/giggsey-libphonenumber-for-php)[respect/validation

The most awesome validation engine ever created for PHP

5.9k37.4M383](/packages/respect-validation)[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k35.7M107](/packages/propaganistas-laravel-phone)[opis/json-schema

Json Schema Validator for PHP

64236.9M186](/packages/opis-json-schema)[giggsey/libphonenumber-for-php-lite

A lite version of giggsey/libphonenumber-for-php, which is a PHP Port of Google's libphonenumber

8412.9M47](/packages/giggsey-libphonenumber-for-php-lite)

PHPackages © 2026

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