ifunk / abn-validator
ABN and ACN validation for PHP
Installs: 42 772
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
This package is auto-updated.
Last update: 2024-10-29 04:53:02 UTC
README
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