PHP Classes

PHP Country and State List Geo Data: Get the list of world countries and their states

Recommend this page to a friend!
  Info   View files Documentation   View files View files (251)   DownloadInstall with Composer Download .zip   Reputation   Support forum (9)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2022-06-14 (5 months ago) RSS 2.0 feedNot enough user ratingsTotal: 101 All time: 9,642 This week: 64Up
Version License PHP version Categories
geodata 1.0.0Shareware5PHP 5, Geography
Description Author

This class can get the list of world countries and their states.

It provides configuration scripts with information about 246 world countries like the country name, country code, country phone prefix, and state names.

The class can return the complete list of countries and their codes and the list of states of a country with a given identifier.

Picture of Ahmad Mustapha
Name: Ahmad Mustapha <contact>
Classes: 19 packages by
Country: Nigeria Nigeria
Age: ???
All time rank: 255314 in Nigeria Nigeria
Week rank: 114 Up4 in Nigeria Nigeria Up
Innovation award
Innovation award
Nominee: 6x

Details

GeoData

A simple class that provides access to country & state list.

Installation

composer require ahmard/geodata

Usage

<?php

use Ahmard\GeoData\Country;

require __DIR__ . '/vendor/autoload.php';

$countries = Country::all();

$states = Country::getStates(160);

var_dump($states);
  Files folder image Files  
File Role Description
Files folder imageraw (1 file, 1 directory)
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  raw  
File Role Description
Files folder imagestates (246 files)
  Accessible without login Plain text file countries.php Aux. Auxiliary script

  Files folder image Files  /  raw  /  states  
File Role Description
  Accessible without login Plain text file c1.php Aux. Auxiliary script
  Accessible without login Plain text file c10.php Aux. Auxiliary script
  Accessible without login Plain text file c100.php Aux. Auxiliary script
  Accessible without login Plain text file c101.php Aux. Auxiliary script
  Accessible without login Plain text file c102.php Aux. Auxiliary script
  Accessible without login Plain text file c103.php Aux. Auxiliary script
  Accessible without login Plain text file c104.php Aux. Auxiliary script
  Accessible without login Plain text file c105.php Aux. Auxiliary script
  Accessible without login Plain text file c106.php Aux. Auxiliary script
  Accessible without login Plain text file c107.php Aux. Auxiliary script
  Accessible without login Plain text file c108.php Aux. Auxiliary script
  Accessible without login Plain text file c109.php Aux. Auxiliary script
  Accessible without login Plain text file c11.php Aux. Auxiliary script
  Accessible without login Plain text file c110.php Aux. Auxiliary script
  Accessible without login Plain text file c111.php Aux. Auxiliary script
  Accessible without login Plain text file c112.php Aux. Auxiliary script
  Accessible without login Plain text file c113.php Aux. Auxiliary script
  Accessible without login Plain text file c114.php Aux. Auxiliary script
  Accessible without login Plain text file c115.php Aux. Auxiliary script
  Accessible without login Plain text file c116.php Aux. Auxiliary script
  Accessible without login Plain text file c117.php Aux. Auxiliary script
  Accessible without login Plain text file c118.php Aux. Auxiliary script
  Accessible without login Plain text file c119.php Aux. Auxiliary script
  Accessible without login Plain text file c12.php Aux. Auxiliary script
  Accessible without login Plain text file c120.php Aux. Auxiliary script
  Accessible without login Plain text file c121.php Aux. Auxiliary script
  Accessible without login Plain text file c122.php Aux. Auxiliary script
  Accessible without login Plain text file c123.php Aux. Auxiliary script
  Accessible without login Plain text file c124.php Aux. Auxiliary script
  Accessible without login Plain text file c125.php Aux. Auxiliary script
  Accessible without login Plain text file c126.php Aux. Auxiliary script
  Accessible without login Plain text file c127.php Aux. Auxiliary script
  Accessible without login Plain text file c128.php Aux. Auxiliary script
  Accessible without login Plain text file c129.php Aux. Auxiliary script
  Accessible without login Plain text file c13.php Aux. Auxiliary script
  Accessible without login Plain text file c130.php Aux. Auxiliary script
  Accessible without login Plain text file c131.php Aux. Auxiliary script
  Accessible without login Plain text file c132.php Aux. Auxiliary script
  Accessible without login Plain text file c133.php Aux. Auxiliary script
  Accessible without login Plain text file c134.php Aux. Auxiliary script
  Accessible without login Plain text file c135.php Aux. Auxiliary script
  Accessible without login Plain text file c136.php Aux. Auxiliary script
  Accessible without login Plain text file c137.php Aux. Auxiliary script
  Accessible without login Plain text file c138.php Aux. Auxiliary script
  Accessible without login Plain text file c139.php Aux. Auxiliary script
  Accessible without login Plain text file c14.php Aux. Auxiliary script
  Accessible without login Plain text file c140.php Aux. Auxiliary script
  Accessible without login Plain text file c141.php Aux. Auxiliary script
  Accessible without login Plain text file c142.php Aux. Auxiliary script
  Accessible without login Plain text file c143.php Aux. Auxiliary script
  Accessible without login Plain text file c144.php Aux. Auxiliary script
  Accessible without login Plain text file c145.php Aux. Auxiliary script
  Accessible without login Plain text file c146.php Aux. Auxiliary script
  Accessible without login Plain text file c147.php Aux. Auxiliary script
  Accessible without login Plain text file c148.php Aux. Auxiliary script
  Accessible without login Plain text file c149.php Aux. Auxiliary script
  Accessible without login Plain text file c15.php Aux. Auxiliary script
  Accessible without login Plain text file c150.php Aux. Auxiliary script
  Accessible without login Plain text file c151.php Aux. Auxiliary script
  Accessible without login Plain text file c152.php Aux. Auxiliary script
  Accessible without login Plain text file c153.php Aux. Auxiliary script
  Accessible without login Plain text file c154.php Aux. Auxiliary script
  Accessible without login Plain text file c155.php Aux. Auxiliary script
  Accessible without login Plain text file c156.php Aux. Auxiliary script
  Accessible without login Plain text file c157.php Aux. Auxiliary script
  Accessible without login Plain text file c158.php Aux. Auxiliary script
  Accessible without login Plain text file c159.php Aux. Auxiliary script
  Accessible without login Plain text file c16.php Aux. Auxiliary script
  Accessible without login Plain text file c160.php Aux. Auxiliary script
  Accessible without login Plain text file c161.php Aux. Auxiliary script
  Accessible without login Plain text file c162.php Aux. Auxiliary script
  Accessible without login Plain text file c163.php Aux. Auxiliary script
  Accessible without login Plain text file c164.php Aux. Auxiliary script
  Accessible without login Plain text file c165.php Aux. Auxiliary script
  Accessible without login Plain text file c166.php Aux. Auxiliary script
  Accessible without login Plain text file c167.php Aux. Auxiliary script
  Accessible without login Plain text file c168.php Aux. Auxiliary script
  Accessible without login Plain text file c169.php Aux. Auxiliary script
  Accessible without login Plain text file c17.php Aux. Auxiliary script
  Accessible without login Plain text file c170.php Aux. Auxiliary script
  Accessible without login Plain text file c171.php Aux. Auxiliary script
  Accessible without login Plain text file c172.php Aux. Auxiliary script
  Accessible without login Plain text file c173.php Aux. Auxiliary script
  Accessible without login Plain text file c174.php Aux. Auxiliary script
  Accessible without login Plain text file c175.php Aux. Auxiliary script
  Accessible without login Plain text file c176.php Aux. Auxiliary script
  Accessible without login Plain text file c177.php Aux. Auxiliary script
  Accessible without login Plain text file c178.php Aux. Auxiliary script
  Accessible without login Plain text file c179.php Aux. Auxiliary script
  Accessible without login Plain text file c18.php Aux. Auxiliary script
  Accessible without login Plain text file c180.php Aux. Auxiliary script
  Accessible without login Plain text file c181.php Aux. Auxiliary script
  Accessible without login Plain text file c182.php Aux. Auxiliary script
  Accessible without login Plain text file c183.php Aux. Auxiliary script
  Accessible without login Plain text file c184.php Aux. Auxiliary script
  Accessible without login Plain text file c185.php Aux. Auxiliary script
  Accessible without login Plain text file c186.php Aux. Auxiliary script
  Accessible without login Plain text file c187.php Aux. Auxiliary script
  Accessible without login Plain text file c188.php Aux. Auxiliary script
  Accessible without login Plain text file c189.php Aux. Auxiliary script
  Accessible without login Plain text file c19.php Aux. Auxiliary script
  Accessible without login Plain text file c190.php Aux. Auxiliary script
  Accessible without login Plain text file c191.php Aux. Auxiliary script
  Accessible without login Plain text file c192.php Aux. Auxiliary script
  Accessible without login Plain text file c193.php Aux. Auxiliary script
  Accessible without login Plain text file c194.php Aux. Auxiliary script
  Accessible without login Plain text file c195.php Aux. Auxiliary script
  Accessible without login Plain text file c196.php Aux. Auxiliary script
  Accessible without login Plain text file c197.php Aux. Auxiliary script
  Accessible without login Plain text file c198.php Aux. Auxiliary script
  Accessible without login Plain text file c199.php Aux. Auxiliary script
  Accessible without login Plain text file c2.php Aux. Auxiliary script
  Accessible without login Plain text file c20.php Aux. Auxiliary script
  Accessible without login Plain text file c200.php Aux. Auxiliary script
  Accessible without login Plain text file c201.php Aux. Auxiliary script
  Accessible without login Plain text file c202.php Aux. Auxiliary script
  Accessible without login Plain text file c203.php Aux. Auxiliary script
  Accessible without login Plain text file c204.php Aux. Auxiliary script
  Accessible without login Plain text file c205.php Aux. Auxiliary script
  Accessible without login Plain text file c206.php Aux. Auxiliary script
  Accessible without login Plain text file c207.php Aux. Auxiliary script
  Accessible without login Plain text file c208.php Aux. Auxiliary script
  Accessible without login Plain text file c209.php Aux. Auxiliary script
  Accessible without login Plain text file c21.php Aux. Auxiliary script
  Accessible without login Plain text file c210.php Aux. Auxiliary script
  Accessible without login Plain text file c211.php Aux. Auxiliary script
  Accessible without login Plain text file c212.php Aux. Auxiliary script
  Accessible without login Plain text file c213.php Aux. Auxiliary script
  Accessible without login Plain text file c214.php Aux. Auxiliary script
  Accessible without login Plain text file c215.php Aux. Auxiliary script
  Accessible without login Plain text file c216.php Aux. Auxiliary script
  Accessible without login Plain text file c217.php Aux. Auxiliary script
  Accessible without login Plain text file c218.php Aux. Auxiliary script
  Accessible without login Plain text file c219.php Aux. Auxiliary script
  Accessible without login Plain text file c22.php Aux. Auxiliary script
  Accessible without login Plain text file c220.php Aux. Auxiliary script
  Accessible without login Plain text file c221.php Aux. Auxiliary script
  Accessible without login Plain text file c222.php Aux. Auxiliary script
  Accessible without login Plain text file c223.php Aux. Auxiliary script
  Accessible without login Plain text file c224.php Aux. Auxiliary script
  Accessible without login Plain text file c225.php Aux. Auxiliary script
  Accessible without login Plain text file c226.php Aux. Auxiliary script
  Accessible without login Plain text file c227.php Aux. Auxiliary script
  Accessible without login Plain text file c228.php Aux. Auxiliary script
  Accessible without login Plain text file c229.php Aux. Auxiliary script
  Accessible without login Plain text file c23.php Aux. Auxiliary script
  Accessible without login Plain text file c230.php Aux. Auxiliary script
  Accessible without login Plain text file c231.php Aux. Auxiliary script
  Accessible without login Plain text file c232.php Aux. Auxiliary script
  Accessible without login Plain text file c233.php Aux. Auxiliary script
  Accessible without login Plain text file c234.php Aux. Auxiliary script
  Accessible without login Plain text file c235.php Aux. Auxiliary script
  Accessible without login Plain text file c236.php Aux. Auxiliary script
  Accessible without login Plain text file c237.php Aux. Auxiliary script
  Accessible without login Plain text file c238.php Aux. Auxiliary script
  Accessible without login Plain text file c239.php Aux. Auxiliary script
  Accessible without login Plain text file c24.php Aux. Auxiliary script
  Accessible without login Plain text file c240.php Aux. Auxiliary script
  Accessible without login Plain text file c241.php Aux. Auxiliary script
  Accessible without login Plain text file c242.php Aux. Auxiliary script
  Accessible without login Plain text file c243.php Aux. Auxiliary script
  Accessible without login Plain text file c244.php Aux. Auxiliary script
  Accessible without login Plain text file c245.php Aux. Auxiliary script
  Accessible without login Plain text file c246.php Aux. Auxiliary script
  Accessible without login Plain text file c25.php Aux. Auxiliary script
  Accessible without login Plain text file c26.php Aux. Auxiliary script
  Accessible without login Plain text file c27.php Aux. Auxiliary script
  Accessible without login Plain text file c28.php Aux. Auxiliary script
  Accessible without login Plain text file c29.php Aux. Auxiliary script
  Accessible without login Plain text file c3.php Aux. Auxiliary script
  Accessible without login Plain text file c30.php Aux. Auxiliary script
  Accessible without login Plain text file c31.php Aux. Auxiliary script
  Accessible without login Plain text file c32.php Aux. Auxiliary script
  Accessible without login Plain text file c33.php Aux. Auxiliary script
  Accessible without login Plain text file c34.php Aux. Auxiliary script
  Accessible without login Plain text file c35.php Aux. Auxiliary script
  Accessible without login Plain text file c36.php Aux. Auxiliary script
  Accessible without login Plain text file c37.php Aux. Auxiliary script
  Accessible without login Plain text file c38.php Aux. Auxiliary script
  Accessible without login Plain text file c39.php Aux. Auxiliary script
  Accessible without login Plain text file c4.php Aux. Auxiliary script
  Accessible without login Plain text file c40.php Aux. Auxiliary script
  Accessible without login Plain text file c41.php Aux. Auxiliary script
  Accessible without login Plain text file c42.php Aux. Auxiliary script
  Accessible without login Plain text file c43.php Aux. Auxiliary script
  Accessible without login Plain text file c44.php Aux. Auxiliary script
  Accessible without login Plain text file c45.php Aux. Auxiliary script
  Accessible without login Plain text file c46.php Aux. Auxiliary script
  Accessible without login Plain text file c47.php Aux. Auxiliary script
  Accessible without login Plain text file c48.php Aux. Auxiliary script
  Accessible without login Plain text file c49.php Aux. Auxiliary script
  Accessible without login Plain text file c5.php Aux. Auxiliary script
  Accessible without login Plain text file c50.php Aux. Auxiliary script
  Accessible without login Plain text file c51.php Aux. Auxiliary script
  Accessible without login Plain text file c52.php Aux. Auxiliary script
  Accessible without login Plain text file c53.php Aux. Auxiliary script
  Accessible without login Plain text file c54.php Aux. Auxiliary script
  Accessible without login Plain text file c55.php Aux. Auxiliary script
  Accessible without login Plain text file c56.php Aux. Auxiliary script
  Accessible without login Plain text file c57.php Aux. Auxiliary script
  Accessible without login Plain text file c58.php Aux. Auxiliary script
  Accessible without login Plain text file c59.php Aux. Auxiliary script
  Accessible without login Plain text file c6.php Aux. Auxiliary script
  Accessible without login Plain text file c60.php Aux. Auxiliary script
  Accessible without login Plain text file c61.php Aux. Auxiliary script
  Accessible without login Plain text file c62.php Aux. Auxiliary script
  Accessible without login Plain text file c63.php Aux. Auxiliary script
  Accessible without login Plain text file c64.php Aux. Auxiliary script
  Accessible without login Plain text file c65.php Aux. Auxiliary script
  Accessible without login Plain text file c66.php Aux. Auxiliary script
  Accessible without login Plain text file c67.php Aux. Auxiliary script
  Accessible without login Plain text file c68.php Aux. Auxiliary script
  Accessible without login Plain text file c69.php Aux. Auxiliary script
  Accessible without login Plain text file c7.php Aux. Auxiliary script
  Accessible without login Plain text file c70.php Aux. Auxiliary script
  Accessible without login Plain text file c71.php Aux. Auxiliary script
  Accessible without login Plain text file c72.php Aux. Auxiliary script
  Accessible without login Plain text file c73.php Aux. Auxiliary script
  Accessible without login Plain text file c74.php Aux. Auxiliary script
  Accessible without login Plain text file c75.php Aux. Auxiliary script
  Accessible without login Plain text file c76.php Aux. Auxiliary script
  Accessible without login Plain text file c77.php Aux. Auxiliary script
  Accessible without login Plain text file c78.php Aux. Auxiliary script
  Accessible without login Plain text file c79.php Aux. Auxiliary script
  Accessible without login Plain text file c8.php Aux. Auxiliary script
  Accessible without login Plain text file c80.php Aux. Auxiliary script
  Accessible without login Plain text file c81.php Aux. Auxiliary script
  Accessible without login Plain text file c82.php Aux. Auxiliary script
  Accessible without login Plain text file c83.php Aux. Auxiliary script
  Accessible without login Plain text file c84.php Aux. Auxiliary script
  Accessible without login Plain text file c85.php Aux. Auxiliary script
  Accessible without login Plain text file c86.php Aux. Auxiliary script
  Accessible without login Plain text file c87.php Aux. Auxiliary script
  Accessible without login Plain text file c88.php Aux. Auxiliary script
  Accessible without login Plain text file c89.php Aux. Auxiliary script
  Accessible without login Plain text file c9.php Aux. Auxiliary script
  Accessible without login Plain text file c90.php Aux. Auxiliary script
  Accessible without login Plain text file c91.php Aux. Auxiliary script
  Accessible without login Plain text file c92.php Aux. Auxiliary script
  Accessible without login Plain text file c93.php Aux. Auxiliary script
  Accessible without login Plain text file c94.php Aux. Auxiliary script
  Accessible without login Plain text file c95.php Aux. Auxiliary script
  Accessible without login Plain text file c96.php Aux. Auxiliary script
  Accessible without login Plain text file c97.php Aux. Auxiliary script
  Accessible without login Plain text file c98.php Aux. Auxiliary script
  Accessible without login Plain text file c99.php Aux. Auxiliary script

  Files folder image Files  /  src  
File Role Description
  Plain text file Country.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:101
This week:0
All time:9,642
This week:64Up