Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 550 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 550 Bytes

ABN and ACN validation for PHP

By Paul Ferrett

Installation

composer require ifunk/abn-validator

Usage

AbnValidator::isValidAbn('53 004 085 616'); // -> true
AbnValidator::isValidAbn('0'); // -> false
AbnValidator::isValidAcn('005 749 986'); // -> true
AbnValidator::isValidAcn('53 004 085 616'); // -> false  (that's an ABN!)
AbnValidator::isValidAbnOrAcn('53 004 085 616'); // -> true
AbnValidator::isValidAbnOrAcn('005 749 986'); // -> true
AbnValidator::isValidAbnOrAcn('0'); // -> false