1. Go to this page and download the library: Download canducci/cep 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/ */
$model->getCep() ou $model->cep
$model->getLogradouro() ou $model->logradouro
$model->getComplemento() ou $model->c omplemento
$model->getBairro() ou $model->bairro
$model->getLocalidade() ou $m odel->localidade
$model->getUf() ou $model->uf
$model->getDdd() ou $model->ddd
$model->getSiafi() ou $model->sia fi
$model->getIbge() ou $model->ib ge
$model->getGia() ou $model->gia