PHP code example of rodrigowba / roveri-sdk

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

    

rodrigowba / roveri-sdk example snippets


use Roveri\SDK\Factory;

$token = 'TOKEN';

$client = (new Factory)->create($token);

use Roveri\SDK\Client;

$token = 'TOKEN';

$client = new Client($token, new GuzzleHttp\Client);

$response = $client->consultaSintegra(string $cnpj, string $uf, string $inscricaoEstadual = '') : SimpleXMLElement;

$response = $client->consultaCnpj(string $cnpj) : SimpleXMLElement;

$response = $client->consultaCpf(string $cpf, string $dataNascimento = '') : SimpleXMLElement;

$response = $client->consultaSimplesNacional(string $cnpj) : SimpleXMLElement;

$response = $client->consultaNFe(string $chave) : SimpleXMLElement;

$response = $client->consultaCTe(string $chave) : SimpleXMLElement;