Skip to content

lmsaud/phpCPF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phpCPF

PHP class used to check if a given CPF number is valid and also get the brazilian state of the cpf number

Usage

require_once "CPF.php";
$cpf = new CPF(PUT_CPF_DIGITS_HERE);
if($cpf->isValid()) {
  echo "CPF is OK";
}
else {
  echo "CPF is NOT OK";
}

$uf = $cpf->getUF();
echo "STATE OF ORIGIN: " + $uf;

About

Class to check if a given CPF number is valid

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages