makowskid/sg-nric

Package to easily validate Singapore NRIC/FIN numbers in PHP

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/makowskid/sg-nric

v1.0.0 2023-12-01 05:18 UTC

This package is auto-updated.

Last update: 2025-09-29 03:00:17 UTC


README

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.