pzinwai/singapore-ic-validator

A fast and easy to use Singapore IC validator.

1.0.0 2021-01-01 09:38 UTC

This package is auto-updated.

Last update: 2024-09-29 05:36:36 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.