PHP code example of live-controls / autoaddress
1. Go to this page and download the library: Download live-controls/autoaddress 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/ */
live-controls / autoaddress example snippets
$cep = 01000001;
$response = new \LiveControls\AutoAddress\Objects\CepAbertoResponse($cep);
//or
$cep = "01000-001"; //Can be a string as well, the CepAberto::fromCep() method will remove everything but numbers
$response = new \LiveControls\AutoAddress\Objects\CepAbertoResponse($cep);