Serviço de consulta CRCP - Central de Registros de Certificados Profissionais
composer require wesleydeveloper/crcp-service
Necessita de uma chave da API 2Captcha
<?php
require __DIR__ . './vendor/autoload.php';
use Wesleydeveloper\CRCPService\CRCPService;
$twoCaptchaKey = ''; // API KEY https://2captcha.com
$crcpService = new CRCPService($twoCaptchaKey);
$cpf = ''; // CPF para pesquisa
try{
$crcpService->check($cpf);
}catch (\Exception $e){
die($e->getMessage());
}
/*
$crcpService->check($cpf) retorna um beloano
$crcpService->getResult() retorna um array
*/