LaravelPackages.net
Acme Inc.
Toggle sidebar
repat/laravel-validator-nric-fin

Laravel Validator for Singapore NRIC / FIN

12.194
2
0.5
About repat/laravel-validator-nric-fin

repat/laravel-validator-nric-fin is a Laravel package for laravel validator for singapore nric / fin. It currently has 2 GitHub stars and 12.194 downloads on Packagist (latest version 0.5). Install it with composer require repat/laravel-validator-nric-fin. Discover more Laravel packages by repat or browse all Laravel packages to compare alternatives.

Last updated

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

Star History Chart