PHP code example of reginaldojunior / municipios-ibge
1. Go to this page and download the library: Download reginaldojunior/municipios-ibge 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/ */
reginaldojunior / municipios-ibge example snippets
$MunicipiosIBGE = new MunicipiosIBGE\Municipios;
// Retorna '3536505'
$municipio = new Normalize('Paulínia');
$estado = new Normalize('São Paulo');
$ibge = Municipios($municipio, $estado);
echo $ibge->getCodeIBGE();