PHP code example of gilclei / check-cpf
1. Go to this page and download the library: Download gilclei/check-cpf 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/ */
gilclei / check-cpf example snippets
ilclei\CheckCpf\CheckCPF;
$cpf = '66105234368';
if (CheckCPF::isValid($cpf)){
echo 'ok';
}
php exemple.php