2017 © Pedro Peláez
 

elgg-plugin countries

Countries for Elgg

image

hypejunction/countries

Countries for Elgg

  • Monday, January 9, 2017
  • by hypeJunction
  • Repository
  • 2 Watchers
  • 2 Stars
  • 44 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Countries for Elgg

Elgg 1.11 Elgg 1.12 Elgg 2.0, (*1)

Country utilities, (*2)

Features

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

Usage

Country select

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

List countries

$countries = elgg_get_countries();
foreach ($countries as $iso => $name) {
    echo "$name ($iso)";
}

Country info

Get a list of countries with extended details, (*3)

$fields = array(
    'name',
    'iso',
    'iso3',
    //'iso_numeric',
    //'fips',
    'capital',
    //'area',
    //'population',
    //'continent',
    'tld',
    'currency_code',
    'currency_name',
    'phone_code',
    'postal_code_format',
    'postal_code_regex',
    'languages',
    //'geoname_id',
    'neighbours'
);

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

The Versions

09/01 2017

dev-master

9999999-dev http://hypejunction.com

Countries for Elgg

  Sources   Download

GPL-2.0

by Ismayil Khayredinov

plugin countries elgg

24/01 2016

1.1.0

1.1.0.0 http://hypejunction.com

Countries for Elgg

  Sources   Download

GPL-2.0

by Ismayil Khayredinov

plugin countries elgg

09/12 2015

1.0.0

1.0.0.0 http://hypejunction.com

Countries for Elgg

  Sources   Download

GPL-2.0

by Ismayil Khayredinov

plugin countries elgg