PHP code example of yarkhan / cnpjdf
1. Go to this page and download the library: Download yarkhan/cnpjdf 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/ */
yarkhan / cnpjdf example snippets
Yarkhan\CNPJDF;
print_r(CNPJDF::consulta('00001172001402'));
/**
* Array
* (
* [cnpj] => 00001172001402
* [razao_social] => SA CORREIO BRAZILIENSE
* [cfdf] => 0730227101037
* [nome_fantasia] => DEPOSITO FECHADO
* [regime_tributario] => XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
* [cnae] =>
* [uf] => DF
* [cidade] => BRASILIA
* [bairro] => ASA SUL
* [logradouro] => SIG/SUL QD 08 NR. 2175 PARTE A
* [cep] => 70610200
* )
*/