makowskid / sg-nric

Singapore NRIC/FIN PHP validator

Home Page:https://en.wikipedia.org/wiki/National_Registration_Identity_Card

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Singapore NRIC/FIN PHP validator

https://en.wikipedia.org/wiki/National_Registration_Identity_Card

License:MIT License


Languages

Language:PHP 100.0%