PHPackages                             makowskid/sg-nric - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. makowskid/sg-nric

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

makowskid/sg-nric
=================

Package to easily validate Singapore NRIC/FIN numbers in PHP

v1.0.0(2y ago)14MITPHP

Since Dec 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/makowskid/sg-nric)[ Packagist](https://packagist.org/packages/makowskid/sg-nric)[ RSS](/packages/makowskid-sg-nric/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

sg-nric: PHP Singapore NRIC/FIN validator
=========================================

[](#sg-nric-php-singapore-nricfin-validator)

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

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/9bdb1ff7e1d2b2cb6361704a5b3e8bc90cf9ebb424273a919add2f263e679b7a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d616b6f77736b69642f73672d6e7269632e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/makowskid/sg-nric)

Install
-------

[](#install)

```
composer require makowskid/sg-nric
```

Usage
-----

[](#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
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](/LICENSE.md) for more information.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

892d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b500dd3d9b470b50b1ed911cd24a6fdcce51dd97dceb4f97879f727a14495a8?d=identicon)[dawid-makowski](/maintainers/dawid-makowski)

---

Top Contributors

[![makowskid](https://avatars.githubusercontent.com/u/6271194?v=4)](https://github.com/makowskid "makowskid (4 commits)")

---

Tags

finnricphpsingaporevalidatorSingaporefinNRIC

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/makowskid-sg-nric/health.svg)

```
[![Health](https://phpackages.com/badges/makowskid-sg-nric/health.svg)](https://phpackages.com/packages/makowskid-sg-nric)
```

###  Alternatives

[respect/validation

The most awesome validation engine ever created for PHP

5.9k37.4M383](/packages/respect-validation)[seld/jsonlint

JSON Linter

1.3k217.8M206](/packages/seld-jsonlint)[composer/spdx-licenses

SPDX licenses list and validation library.

1.4k184.2M25](/packages/composer-spdx-licenses)[opis/json-schema

Json Schema Validator for PHP

64236.9M186](/packages/opis-json-schema)[intervention/validation

Additional validation rules for the Laravel framework

6826.7M8](/packages/intervention-validation)[laminas/laminas-validator

Validation classes for a wide range of domains, and the ability to chain validators to create complex validation criteria

15544.9M188](/packages/laminas-laminas-validator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
