PHP code example of nickeatingsalsage / php-ibgekit
1. Go to this page and download the library: Download nickeatingsalsage/php-ibgekit 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/ */
nickeatingsalsage / php-ibgekit example snippets
php
// Realiza consulta em todos os estados consulta em todos os estados.
// Search for all states.
Realiza consulta nos estados com id 33 e 34.
// Search only with state 33 or 34.
. '/../../vendor/autoload.php';
$search = new \IbgeKit\src\kits\StateSearch();
echo json_encode($search->getOne(33));
// Verifica se determinado estado existe.
// Verifies if an state exists.