PHPackages                             xtomdex/yii2-widget-country - 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. xtomdex/yii2-widget-country

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

xtomdex/yii2-widget-country
===========================

Rendering countries list with Select2 dropdown widget

1.0.2(6y ago)0102BSD-3-ClausePHP

Since Nov 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/xtomdex/yii2-widget-country)[ Packagist](https://packagist.org/packages/xtomdex/yii2-widget-country)[ RSS](/packages/xtomdex-yii2-widget-country/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (5)Used By (0)

Yii2 CountrySelect widget
=========================

[](#yii2-countryselect-widget)

This widget extends [Kartik's Select2 widget](https://github.com/kartik-v/yii2-widget-select2). It uses country codes and names as data and renders list in dropdown.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist xtomdex/yii2-widget-country "*"

```

or add

```
"xtomdex/yii2-widget-country": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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 ~7 days

Total

4

Last Release

2358d ago

Major Versions

0.0.1 → 1.0.02019-11-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/458266227cab94f939d80c4585a0e9811e50839ae4df5c41d91c7a749be70c4d?d=identicon)[xtomdex](/maintainers/xtomdex)

---

Top Contributors

[![xtomdex](https://avatars.githubusercontent.com/u/37620734?v=4)](https://github.com/xtomdex "xtomdex (6 commits)")

---

Tags

countriesyii2widgetselect2kartik

### Embed Badge

![Health badge](/badges/xtomdex-yii2-widget-country/health.svg)

```
[![Health](https://phpackages.com/badges/xtomdex-yii2-widget-country/health.svg)](https://phpackages.com/packages/xtomdex-yii2-widget-country)
```

###  Alternatives

[kartik-v/yii2-widget-datepicker

Enhanced Yii2 wrapper for the bootstrap datepicker plugin (sub repo split from yii2-widgets).

1097.0M60](/packages/kartik-v-yii2-widget-datepicker)[kartik-v/yii2-widget-datetimepicker

Enhanced Yii2 wrapper for the bootstrap datetimepicker plugin (sub repo split from yii2-widgets)

1036.5M47](/packages/kartik-v-yii2-widget-datetimepicker)[conquer/select2

Yii2 Select2 widget

1678.0k4](/packages/conquer-select2)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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