PHP code example of cachesistemas / gov
1. Go to this page and download the library: Download cachesistemas/gov 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 / gov example snippets
chesistemas\Gov\Gov;
$gov = new Gov();
$gov->cpf_cnpj = ''; // CPF ou CNPJ
$gov->data = ''; // DATA DE NASCIMENTO ou DATA DE ABERTURA EMPRESA YYYY-MM-DD
$consulta = $gov->consultar();
echo json_encode($consulta);
json
{
"status":true,
"dataRegate":"08\/03\/2022",
"dataRepescagem":"12\/03\/2022"
}