PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Ahmad Mustapha   PHP Country and State List Geo Data   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Country and State List Geo Data
Get the list of world countries and their states
Author: By
Last change:
Date: 1 year ago
Size: 313 bytes
 

Contents

Class file image Download

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);