Skip to content

raphaelvserafim/Consultar_CPF_Receita_PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Consultando CPF Receita Federal

Instalando via composer

composer require cachesistemas/consultacpf

Exemplos de uso

imgRecaptcha.php
<?php 

include_once 'vendor/autoload.php';

use Cachesistemas\ConsultaCPF\ConsultaCPF;

$consulta    = new ConsultaCPF();

$result      = $consulta->imgRecaptchaCPF();

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

include_once 'vendor/autoload.php';

use Cachesistemas\ConsultaCPF\ConsultaCPF;

$consulta    = new ConsultaCPF();

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

echo json_encode($result); 
Exemplo retorno JSON
{
"status":true,
"cpf":"000.000.000-00",
"nome":"NOME COMPLETO",
"data_nascimento":"dd\/mm\/YYYY",
"situacao":"REGULAR"
}
☕ PIX
23.711.695/0001-15 

Contato

About

Consultar CPF Receita Federal

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages