PHP code example of kslimani / geo-list
1. Go to this page and download the library: Download kslimani/geo-list library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kslimani / geo-list example snippets
use Sk\Geo\GeoList;
// Get countries for 'en_US'
$countries = GeoList::countries('en_US');
// Get currencies for 'en_US'
$currencies = GeoList::currencies('en_US');
// Get languages with fallback locale (will fail for "foo_BAR")
$languages = GeoList::languages('foo_BAR', 'fr_FR');