ifunk/abn-validator

ABN and ACN validation for PHP

Installs: 51 354

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 0

pkg:composer/ifunk/abn-validator

v1.0.1 2019-06-02 22:11 UTC

This package is auto-updated.

Last update: 2025-10-29 02:08:38 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