repat/laravel-validator-nric-fin

Laravel Validator for Singapore NRIC / FIN
12,204 2
Install
composer require repat/laravel-validator-nric-fin
Latest Version:0.5
PHP:>=7.4
Laravel:6 – 11
License:MIT
Last Updated:May 27, 2024
Links: GitHub  ·  Packagist
Maintainer: repat

laravel-validator-nric-fin

Latest Version on Packagist Total Downloads

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

Version

  • Version 0.5

Contact

repat

Flattr this git repo

Related Packages

stuyam/laravel-phone-validator

A phone validator for Laravel using the free Twilio phone lookup service.

63,024 28
triun/laravel-model-validable

Gives the models the ability to be validated before saved.

473 1
ellisio/laravel-phone

A phone validator for Laravel using the free Twilio phone lookup service.

29,984 11
proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rul...

2,488,740 1,140
hamedmehryar/laravel-kickbox-validator

A kickbox email validator for form requests in laravel (forked from 'stayum')

62 1

Version History

Version Released PHP Laravel License
0.5 >=7.4 ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0 MIT
0.4 >=7.4 ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0 MIT
0.3 >=7.4 ^6.0|^7.0|^8.0|^9.0|^10.0 MIT
0.2 >=7.4 ^6.0|^7.0|^8.0|^9.0 MIT
0.1 >=7.4 ^6.0|^8.0 MIT