lmsaud / phpcpf
CPF verify for PHP 5.3
dev-master
2018-01-09 00:13 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-06-05 07:10:25 UTC
README
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;