2017 © Pedro Peláez
 

library world-locations

Allows to retrieve all world's countries, cities and regions

image

eugenecooper/world-locations

Allows to retrieve all world's countries, cities and regions

  • Saturday, January 14, 2017
  • by eugenecooper
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

World-Locations

This simple package allows to retrieve all world's countries, a certain country regions and cities, etc. The code is relying on vk.com public API, so if you'll need to make too much requests you should cache results or save them to your database., (*1)

Install

Via Composer, (*2)

``` bash $ composer require eugenecooper/world-locations, (*3)


## Usage ``` php $locations = new \EugeneCooper\WorldLocations\Locations; // Obtain an array of all world's countries $locations->getCountries(); // Obtain an array of all country regions ($country_id can be obtained with the method above) $locations->getCountryRegions($country_id); // Obtain an array of all country cities $locations->getCountryCities($country_id); // Obtain an array of all country region's cities ($region_id can be obtained with methods above) $locations->getRegionCities($country_id, $region_id);

License

The MIT License (MIT)., (*4)

The Versions

14/01 2017

dev-master

9999999-dev https://github.com/eugenecooper/world-locations

Allows to retrieve all world's countries, cities and regions

  Sources   Download

MIT

The Requires

 

by Eugene Cooper

list states countries cities global regions provinces all

14/01 2017

v0.1.3

0.1.3.0 https://github.com/eugenecooper/world-locations

Allows to retrieve all world's countries, cities and regions

  Sources   Download

MIT

The Requires

 

by Eugene Cooper

list states countries cities global regions provinces all