This package is abandoned and no longer maintained. No replacement package was suggested.

Countries for Elgg

2.1.3 2018-07-20 18:41 UTC

This package is not auto-updated.

Last update: 2020-02-01 13:45:43 UTC


Elgg 3.0

Country utilities


  • Country info, including name, ISO, ISO-3, ISO numeric, FIPS, TLD, currency code, postal code format and other
  • Country input view


Country select

echo elgg_view('input/country', array(
	'name' => 'country',
	'value' => 'CZ',

List countries

$countries = elgg()->countries->getCountries();
foreach ($countries as $country) {
	/* @var $country \hypeJunction\Country */
	echo "$country->name ($country->iso)";

Country info

Get a list of countries with extended details

$fields = array(

// Get a list of countries ordered by currency_code
$countries = elgg_get_country_info($fields, 'currency_code');