Download the PHP package smart/geo without Composer
On this page you can find all versions of the php package smart/geo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package geo
Short Description Smart Geo is databases from Open Data providers compiled into easy to use PHP objects.
License MIT
Homepage https://github.com/smart-io/geo
Informations about the package geo
This library is deprecated, use geobase/countries instead.
Smart Geo
Smart Geo is databases from Open Data providers compiled into easy to use PHP objects.
- Features
- Sources
- Requirements
- Installation
- Country
- Region
Features
- Multiple languages (Currently only supports English, French and German).
- Country Database
- Region Database (Currently only for Canada and the United States).
- IP Geolocation (With MaxMind)
Sources
Requirements
Smart Geo does not require a database, but instead, uses JSON files.
This library uses PHP 5.6+.
Installation
You need to install the Smart Geo library through composer. To do so, add the following lines to your composer.json file.
To download or update the current data, use the following command.
Country
Database of all countries in the world.
Properties
- Names
- Short Code (Alpha-2 code)
- Code (Alpha-3 code)
- Latitude
- Longitude
- Bounding Box
- Currency
- Continent
- Population
- Area
- Capital
- Timezone
Examples
Get a list of all countries.
Get country name in english.
Order by country name in english.
Region
Database of all States, Federal Districts and Territories in the United States, Provinces and Territories in Canada.
Properties
- Name
- Code (Alpha-2 code)
- Country
- Type
- Latitude
- Longitude
- Bounding Box
Examples
Get a list of all regions in the US.
Get region name and type in english.
All versions of geo with dependencies
league/geotools Version >=0.6
psr/log Version >=1
symfony/console Version >=2.7