PHP code example of raigu / personal-code-validation
1. Go to this page and download the library: Download raigu/personal-code-validation library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
raigu / personal-code-validation example snippets
if (\Raigu\is_valid_personal_code('00000000000')) {
echo "Valid\n";
} else {
echo "Invalid\n";
}
echo \Raigu\personal_code_control_number('1234567890') . "\n";
echo \Raigu\personal_code_control_number('12345678901') . "\n";