Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ionbazan/nric

Provides a value object to store, generate and validate Singapore NRIC/FIN numbers
https://github.com/ionbazan/nric

document fin generator id nric php singapore validator value-oject

Last synced: 25 days ago
JSON representation

Provides a value object to store, generate and validate Singapore NRIC/FIN numbers

Awesome Lists containing this project

README

        

# Singapore NRIC/FIN number generator and validator

[![Latest version](https://img.shields.io/packagist/v/ion-bazan/nric.svg)](https://packagist.org/packages/ion-bazan/nric)
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/IonBazan/NRIC/Tests)](https://github.com/IonBazan/NRIC/actions)
[![PHP version](https://img.shields.io/packagist/php-v/ion-bazan/nric.svg)](https://packagist.org/packages/ion-bazan/nric)
[![Codecov](https://img.shields.io/codecov/c/gh/IonBazan/NRIC)](https://codecov.io/gh/IonBazan/NRIC)
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FIonBazan%2FNRIC%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/IonBazan/NRIC/main)
[![Downloads](https://img.shields.io/packagist/dt/ion-bazan/nric.svg)](https://packagist.org/packages/ion-bazan/nric)
[![License](https://img.shields.io/packagist/l/ion-bazan/nric.svg)](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

```php
__toString()); // Thanks to Stringable interface
```