A simple tiny PHP only version of the awesome umpirsky's country-list, currency-list and language-list projects.
This package is used by laravel-geo and the main goal is to reduce dependencies size. (ie: composer download time and size)
use Composer to add the package to your project's dependencies :
composer require kslimani/geo-list
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');