Download the PHP package geobase/countries without Composer
On this page you can find all versions of the php package geobase/countries. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download geobase/countries
More information about geobase/countries
Files in geobase/countries
Package countries
Short Description Data from Open Data providers compiled into easy to use PHP objects
License MIT
Homepage https://github.com/geobase/php-countries
Informations about the package countries
Data from Open Data providers compiled into easy to use PHP objects Edit
- 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).
Sources
Requirements
This library does not require a database, but instead, uses JSON files.
This library uses PHP 5.6+.
Installation
You need to install the library through composer. To do so, 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.