repat / laravel-validator-nric-fin
Laravel Validator for Singapore NRIC / FIN
Installs: 11 108
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- php: >=7.4
- laravel/framework: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
Requires (Dev)
- orchestra/testbench: ^6.17
- phpunit/phpunit: ^9.5
README
laravel-validator-nric-fin is a custom Rule Object / Validator for Laravel that validates the National Registration Identity Card (NRIC) and Foreign Identification Number (FIN) of Singapore.
Installation
$ composer require repat/laravel-validator-nric-fin
Documentation
use Illuminate\Http\Request; use Repat\LaravelRules\NricFin; // ... public function controllerMethod(Request $request) { $request->validate([ 'nric' => new NricFin, ]); // }
Tests
vendor/bin/phpunit
License
- MIT, see LICENSE
Version
- Version 0.5
Contact
repat
- Homepage: https://repat.de
- e-mail: repat@repat.de
- Twitter: @repat123