pzinwai / singapore-ic-validator
A fast and easy to use Singapore IC validator.
1.0.0
2021-01-01 09:38 UTC
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2025-04-29 01:11:11 UTC
README
A fast and easy to use Singapore IC validator.
Requirements
PHP >= 5.3.0
Installation
composer require pzinwai/singapore-ic-validator
Usage
use pzinwai\SingaporeICValidator\SingaporeICValidator; $result = SingaporeICValidator::validateNRIC("SXXXXXXXZ");
If the returned value is true
, then validation succeeds.
If the returned value is false
, then validation fails.