Skip to content

makowskid/sg-nric

Repository files navigation

sg-nric: PHP Singapore NRIC/FIN validator

PHP Singapore NRIC (National Registration Identity Card) or FIN (Foreign Identification Number) validator package

Software License Total Downloads

Install

composer require makowskid/sg-nric

Usage

use Makowskid\SgNric\SgNric;

$validator = new SgNric();

if ($validator->isNricValid($theNric)) {
    // NRIC is valid
    // Your code here...
}

// OR

if ($validator->isFinValid($theFin)) {
    // FIN is valid
    // Your code here...
}

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). Please see License File for more information.