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
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.

62,649 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,983 11
proengsoft/laravel-jsvalidation

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

2,465,214 1,140
hamedmehryar/laravel-kickbox-validator

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

62 1