Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ionbazan/nric
- Owner: IonBazan
- License: mit
- Created: 2021-03-30T17:54:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-20T02:49:31.000Z (over 2 years ago)
- Last Synced: 2024-09-18T01:11:56.205Z (about 2 months ago)
- Topics: document, fin, generator, id, nric, php, singapore, validator, value-oject
- Language: PHP
- Homepage:
- Size: 11.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```