aliirfaan / mu-identity-kit
Package to work with Mauritius national identity card number
3.0.0
2024-02-29 07:53 UTC
Requires
- php: >=5.2.0
Requires (Dev)
This package is auto-updated.
Last update: 2025-03-29 01:00:34 UTC
README
PHP library for validating national indentity card (NIC) number.
Features
- Validate NIC number using regex and checksum
Installation
Install the latest version with
$ composer require aliirfaan/mu-identity-kit
Basic Usage
<?php require 'vendor/autoload.php'; use Aliirfaan\IdentityKit\IdentityCardKit; // instantiate class $identityCardKit = new IdentityCardKit(); // use $isValid = $identityCardKit->isValidNicNumber('N051186463883C'); // false
About
Requirements
- Version 1.x works with PHP 5.2.0 or above