PHP code example of neilnz / nzbankaccountvalidation
1. Go to this page and download the library: Download neilnz/nzbankaccountvalidation 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/ */
neilnz / nzbankaccountvalidation example snippets
$accountNumber = '12-3140-0171323-50';
list($bank, $branch, $account, $suffix) = explode('-', $accountNumber);
var_dump(NeilNZ\NZBankAccountValidation\Validator::validate($bank, $branch, $account, $suffix));