PHPackages                             repat/laravel-validator-nric-fin - 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. repat/laravel-validator-nric-fin

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

repat/laravel-validator-nric-fin
================================

Laravel Validator for Singapore NRIC / FIN

0.5(1y ago)212.2k2MITPHPPHP &gt;=7.4

Since May 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/repat/laravel-validator-nric-fin)[ Packagist](https://packagist.org/packages/repat/laravel-validator-nric-fin)[ Docs](https://repat.de)[ RSS](/packages/repat-laravel-validator-nric-fin/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

laravel-validator-nric-fin
==========================

[](#laravel-validator-nric-fin)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3336c6315943559c95a7efa7fb110d5c133df0109aeabbaa2bbe019288e7050f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72657061742f6c61726176656c2d76616c696461746f722d6e7269632d66696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/repat/laravel-validator-nric-fin)[![Total Downloads](https://camo.githubusercontent.com/16923534c80e12f7e8d38268e5989bf23bbd15bb60cdcb2579483c8eb2b50c2e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72657061742f6c61726176656c2d76616c696461746f722d6e7269632d66696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/repat/laravel-validator-nric-fin)

**laravel-validator-nric-fin** is a [custom Rule Object / Validator](https://laravel.com/docs/8.x/validation#custom-validation-rules) for Laravel that validates the *National Registration Identity Card* (NRIC) and *Foreign Identification Number (FIN)* of Singapore.

- [More information on the structure of NRIC / FIN](https://en.wikipedia.org/wiki/National_Registration_Identity_Card#Structure_of_the_NRIC_number/FIN)
- [Gist this is based on](https://gist.github.com/kamerk22/ed5e0778b3723311d8dd074c792834ef) (thx, [kamerk22](https://github.com/kamerk22)!)

Installation
------------

[](#installation)

`$ composer require repat/laravel-validator-nric-fin`

Documentation
-------------

[](#documentation)

```
use Illuminate\Http\Request;
use Repat\LaravelRules\NricFin;

// ...

public function controllerMethod(Request $request) {
    $request->validate([
        'nric' => new NricFin,
    ]);

    //
}
```

Tests
-----

[](#tests)

```
vendor/bin/phpunit
```

License
-------

[](#license)

- MIT, see [LICENSE](https://github.com/repat/laravel-validator-nric-fin/blob/master/LICENSE)

Version
-------

[](#version)

- Version 0.5

Contact
-------

[](#contact)

### repat

[](#repat)

- Homepage:
- e-mail:
- Twitter: [@repat123](https://twitter.com/repat123 "repat123 on twitter")

[![Flattr this git repo](https://camo.githubusercontent.com/7e3f46a36526479d701ef7f90a0f8c3ac2fbab3087446e2a9fceed75cd1ab802/687474703a2f2f6170692e666c617474722e636f6d2f627574746f6e2f666c617474722d62616467652d6c617267652e706e67)](https://flattr.com/submit/auto?user_id=repat&url=https://github.com/repat/laravel-validator-nric-fin&title=laravel-validator-nric-fin&language=&tags=github&category=software)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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

Every ~278 days

Total

5

Last Release

716d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/405dab243007488e7e7851422e5864a9312aee36058d60f1e6d623232c4d3131?d=identicon)[repat](/maintainers/repat)

---

Top Contributors

[![repat](https://avatars.githubusercontent.com/u/516807?v=4)](https://github.com/repat "repat (8 commits)")[![IonBazan](https://avatars.githubusercontent.com/u/1985514?v=4)](https://github.com/IonBazan "IonBazan (1 commits)")

---

Tags

laravelvalidatorvalidationSingaporefinNRIC

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/repat-laravel-validator-nric-fin/health.svg)

```
[![Health](https://phpackages.com/badges/repat-laravel-validator-nric-fin/health.svg)](https://phpackages.com/packages/repat-laravel-validator-nric-fin)
```

###  Alternatives

[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2412.2M5](/packages/laravel-validation-rules-credit-card)[illuminatech/validation-composite

Allows uniting several validation rules into a single one for easy re-usage

184485.5k](/packages/illuminatech-validation-composite)[stuyam/laravel-phone-validator

A phone validator for Laravel using the free Twilio phone lookup service.

2861.3k](/packages/stuyam-laravel-phone-validator)[laravel-validation-rules/timezone

Validate that a given timezone is valid.

2119.0k](/packages/laravel-validation-rules-timezone)

PHPackages © 2026

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