PHP code example of sevencoder / consumo-correios

1. Go to this page and download the library: Download sevencoder/consumo-correios 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/ */

    

sevencoder / consumo-correios example snippets





//isso aqui não será necessário se os arquivos aonde 
//voce chama já roda com o autoload do composer
 endereco
$buscaCepPorEndereco = ConsumoCorreios::buscarCepByEndereco('Avenida Dom Pedro');

//de endereco através de cep
$buscaEnderecoByCEP = ConsumoCorreios::buscarEnderecoByCep('58064560');