PHPackages                             ion-bazan/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. ion-bazan/nric

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

ion-bazan/nric
==============

Provides a value object to store, generate and validate Singapore NRIC/FIN numbers, including new M-series FIN numbers

v1.0.2(3y ago)342MITPHPPHP &gt;= 7.4

Since Feb 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/IonBazan/NRIC)[ Packagist](https://packagist.org/packages/ion-bazan/nric)[ RSS](/packages/ion-bazan-nric/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Singapore NRIC/FIN number generator and validator
=================================================

[](#singapore-nricfin-number-generator-and-validator)

[![Latest version](https://camo.githubusercontent.com/097c4065aa3878fda207082fda280e8252001abaa8a5c6292f1afb4f31fe6f18/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696f6e2d62617a616e2f6e7269632e737667)](https://packagist.org/packages/ion-bazan/nric)[![GitHub Workflow Status](https://camo.githubusercontent.com/84c1c95f9bd9cc8b89f1af0b469ea2ec3c589948ce3aff787edeead30f9a9251/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f496f6e42617a616e2f4e5249432f5465737473)](https://github.com/IonBazan/NRIC/actions)[![PHP version](https://camo.githubusercontent.com/d0f8f83c03a793b1d430463671eff10ccd4d25faed89be0cd3e2b1671ed84fd0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f696f6e2d62617a616e2f6e7269632e737667)](https://packagist.org/packages/ion-bazan/nric)[![Codecov](https://camo.githubusercontent.com/bb6c3b6ac9bbee71b1c33837d1a5403cdb5c9b239379f79691afd9c39cd05bef/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f496f6e42617a616e2f4e524943)](https://codecov.io/gh/IonBazan/NRIC)[![Mutation testing badge](https://camo.githubusercontent.com/c24904649ec623711f924d9df0c8aad6969607b25bcf5d9a5611e660459728fc/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246496f6e42617a616e2532464e5249432532466d61696e)](https://dashboard.stryker-mutator.io/reports/github.com/IonBazan/NRIC/main)[![Downloads](https://camo.githubusercontent.com/703de4ff50bd0abaa3e722ca8835044bb304ff2d2169b1ac945e5366a6c43343/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696f6e2d62617a616e2f6e7269632e737667)](https://packagist.org/packages/ion-bazan/nric)[![License](https://camo.githubusercontent.com/8b21d8d31a61ab8a1584600d4a30c2c14bf097753386e1723113be933d99bb9d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f696f6e2d62617a616e2f6e7269632e737667)](https://packagist.org/packages/ion-bazan/nric)

**It now supports new 2022 M-series FIN numbers!**

This package provides a self-validating value object for storing, generating and validating Singapore NRIC and FIN numbers in PHP.

Usage
-----

[](#usage)

```
