https://github.com/makowskid/sg-nric
Singapore NRIC/FIN PHP validator
https://github.com/makowskid/sg-nric
fin nric php singapore
Last synced: about 2 months ago
JSON representation
Singapore NRIC/FIN PHP validator
- Host: GitHub
- URL: https://github.com/makowskid/sg-nric
- Owner: makowskid
- License: mit
- Created: 2020-11-19T12:22:54.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-01T05:21:34.000Z (over 1 year ago)
- Last Synced: 2025-02-16T08:43:08.565Z (4 months ago)
- Topics: fin, nric, php, singapore
- Language: PHP
- Homepage: https://en.wikipedia.org/wiki/National_Registration_Identity_Card
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# sg-nric: PHP Singapore NRIC/FIN validator
PHP Singapore NRIC (National Registration Identity Card) or FIN (Foreign Identification Number) validator package
[](LICENSE.md)
[](https://packagist.org/packages/makowskid/sg-nric)## Install
```bash
composer require makowskid/sg-nric
```## Usage
```bash
use Makowskid\SgNric\SgNric;
$validator = new SgNric();
if ($validator->isNricValid($theNric)) {
// NRIC is valid
// Your code here...
}// OR
if ($validator->isFinValid($theFin)) {
// FIN is valid
// Your code here...
}```
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## License
The MIT License (MIT). Please see [License File](/LICENSE.md) for more information.