PHP code example of cachesistemas / consultacpf

1. Go to this page and download the library: Download cachesistemas/consultacpf 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/ */

    

cachesistemas / consultacpf example snippets


 

chesistemas\ConsultaCPF\ConsultaCPF;

$consulta    = new ConsultaCPF();

$result      = $consulta->imgRecaptchaCPF();

if ($result["status"]) {
    echo  '<img src="' . $result["img"] . '" style="width: 200px;">';
}
 




achesistemas\ConsultaCPF\ConsultaCPF;

$consulta    = new ConsultaCPF();

$result      = $consulta->consultandoCPF('00000000000','dd/mm/YYYY', 'captcha');

echo json_encode($result);