Skip to content

Country To Cities and City To Country There is JSON File With a lot language reading class (Just for PHP at the moment)

License

Notifications You must be signed in to change notification settings

fatihmert/Country-To-City

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Country-To-City

Country To Cities and City To Country There is JSON File With a lot language reading class (Just for PHP at the moment)

Supported Languages

  • PHP
  • Python 2x

country2city.json File Structure

{
  <string> : <list>, ...,
}

{
  "Turkey" : ["Istanbul","Izmir",..], ...
}

PHP Functions

$c2c = new Country2City();

Cities from Country (return Array)

$c2c->getCities("country name");

Find Country from City (return String)

$c2c->findCountryFromCity("city name");

List all of Countries (return Array)

$c2c->getCountries();

About

Country To Cities and City To Country There is JSON File With a lot language reading class (Just for PHP at the moment)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published