wesleydeveloper/crcp-service

CRCP查询服务 - 专业证书注册中心

dev-master 2021-03-24 13:11 UTC

This package is auto-updated.

Last update: 2024-09-24 20:36:36 UTC


README

CRCP查询服务 - 专业证书注册中心

安装

composer require wesleydeveloper/crcp-service

使用

需要2Captcha 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
*/