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: 4 months 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 (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-20T02:49:31.000Z (about 3 years ago)
- Last Synced: 2025-02-03T07:25:29.267Z (4 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
[](https://packagist.org/packages/ion-bazan/nric)
[](https://github.com/IonBazan/NRIC/actions)
[](https://packagist.org/packages/ion-bazan/nric)
[](https://codecov.io/gh/IonBazan/NRIC)
[](https://dashboard.stryker-mutator.io/reports/github.com/IonBazan/NRIC/main)
[](https://packagist.org/packages/ion-bazan/nric)
[](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
```