pearl / aadhaar-validator
Validate aadhaar using PHP
1.0
2018-05-08 07:44 UTC
Requires
- php: ~5.6|~7
Requires (Dev)
- phpunit/phpunit: ~5.0|~6.0
This package is auto-updated.
Last update: 2024-11-18 03:31:06 UTC
README
Validate aadhaar number using Verhoeff algorithm in PHP language.
Installation
composer require pearl/aadhaar-validator
How to use?
use Pearl\AadhaarValidator\AadhaarValidator;
$obj = new AadhaarValidator();
$obj->validate("999999990019");
//returns true
$obj->validate("999999990020");
//return false
$obj->validate("999999990026");
//return true
$obj->validate("233214435423");
//return false