A simple class that provides access to country & state list.
composer require ahmard/geodata
<?php
use Ahmard\GeoData\Country;
require __DIR__ . '/vendor/autoload.php';
$countries = Country::all();
var_dump($countries);
<?php
use Ahmard\GeoData\Country;
require __DIR__ . '/vendor/autoload.php';
$countryInfo = Country::getByPhoneCode(234);
var_dump($countryInfo);
<?php
use Ahmard\GeoData\Country;
require __DIR__ . '/vendor/autoload.php';
$states = Country::getStates(160);
var_dump($states);