Skip to content

ABN and ACN validation for PHP by Paul Ferrett

Notifications You must be signed in to change notification settings

ThomWilhelm/abn-validator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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

About

ABN and ACN validation for PHP by Paul Ferrett

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%