lmsaud / phpcpf
CPF verify for PHP 5.3
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/lmsaud/phpcpf
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-09-24 13:23:22 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;