PHP code example of igzard / huncity-php

1. Go to this page and download the library: Download igzard/huncity-php 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/ */

    

igzard / huncity-php example snippets


use Igzard\HuncityPhp\CitySearcher;

ties = $searcher->find('Bu');

    
use Igzard\HuncityPhp\CitySearcher;

(new Igzard\HuncityPhp\Service\Search\Zipcode());
$zipcodes = $searcher->find('2194');

use Igzard\HuncityPhp\CitySearcher;

ties = $searcher->find('Bu');

    
use Igzard\HuncityPhp\CitySearcher;

(new Igzard\HuncityPhp\Service\Search\Zipcode());
$zipcodes = $searcher->find('2194');
bash
composer 
bash
composer