PHP code example of wead / cep-gratis

1. Go to this page and download the library: Download wead/cep-gratis 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/ */

    

wead / cep-gratis example snippets




ead\ZipCode\Search;

$search = new Search;
$search->setMaxAttempts(2); // optional, attempts to try get address (default 5)

var_dump($search->getAddressFromZipcode('03624010'));