PHPackages                             hypejunction/countries - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. hypejunction/countries

AbandonedArchivedElgg-plugin[Utility &amp; Helpers](/categories/utility)

hypejunction/countries
======================

Countries for Elgg

1.1.0(10y ago)28231GPL-2.0PHP

Since Dec 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/hypeJunction/Elgg-countries)[ Packagist](https://packagist.org/packages/hypejunction/countries)[ Docs](http://hypejunction.com)[ RSS](/packages/hypejunction-countries/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (1)

Countries for Elgg
==================

[](#countries-for-elgg)

[![Elgg 1.11](https://camo.githubusercontent.com/eb70bd54ec09a4dbe53815a1d2040f2515089becfb1cc1c57edaaf114accd4fe/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d312e31312e782d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/eb70bd54ec09a4dbe53815a1d2040f2515089becfb1cc1c57edaaf114accd4fe/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d312e31312e782d6f72616e67652e7376673f7374796c653d666c61742d737175617265)[![Elgg 1.12](https://camo.githubusercontent.com/b34240a6eeb53630b7f0fd235a508c28d6e93e6090697529c478ba94288eff93/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d312e31322e782d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/b34240a6eeb53630b7f0fd235a508c28d6e93e6090697529c478ba94288eff93/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d312e31322e782d6f72616e67652e7376673f7374796c653d666c61742d737175617265)[![Elgg 2.0](https://camo.githubusercontent.com/981b94044a74b931be93e2825c7151896de9c8a53ccb960daf01b8fe0d800774/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d322e302e782d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/981b94044a74b931be93e2825c7151896de9c8a53ccb960daf01b8fe0d800774/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d322e302e782d6f72616e67652e7376673f7374796c653d666c61742d737175617265)

Country utilities

Features
--------

[](#features)

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

Usage
-----

[](#usage)

### Country select

[](#country-select)

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

### List countries

[](#list-countries)

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

### Country info

[](#country-info)

Get a list of countries with extended details

```
$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');
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~45 days

Total

2

Last Release

3810d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5071b1cd852e094b3f564962a625e04c227adc73af30c5b46b243ab8f20154a7?d=identicon)[hypeJunction](/maintainers/hypeJunction)

---

Top Contributors

[![hypeJunction](https://avatars.githubusercontent.com/u/1202761?v=4)](https://github.com/hypeJunction "hypeJunction (9 commits)")

---

Tags

pluginelggcountries

### Embed Badge

![Health badge](/badges/hypejunction-countries/health.svg)

```
[![Health](https://phpackages.com/badges/hypejunction-countries/health.svg)](https://phpackages.com/packages/hypejunction-countries)
```

###  Alternatives

[coldtrick/group_tools

Combines different group additions into one plugin

305.2k](/packages/coldtrick-group-tools)[coldtrick/profile_manager

Improved management of user and group profile fields

293.8k1](/packages/coldtrick-profile-manager)[coldtrick/widget_manager

Manage your widgets

214.4k](/packages/coldtrick-widget-manager)[coldtrick/thewire_tools

Extend the functionality of The Wire

133.2k](/packages/coldtrick-thewire-tools)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
