New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

repat/laravel-validator-nric-fin

Laravel Validator for Singapore NRIC / FIN
12,208 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

polass/validators

Extra validators for Laravel

6 0
laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2,620,839 245
repat/laravel-validator-emojis

Laravel Validator for Emojis

32,151 4
laravel-validation-rules/timezone

Validate that a given timezone is valid.

19,014 21
laratalks/validator

Laravel Validation supports multiple scenarios

7,173 5

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