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)0103BSD-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

28

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

2455d ago

Major Versions

0.0.1 → 1.0.02019-11-05

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/37620734?v=4)[Dmitrii Sharonov](/maintainers/xtomdex)[@xtomdex](https://github.com/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

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13926.0k66](/packages/skeeks-cms)[craftcms/cms

Craft CMS

3.6k3.7M3.4k](/packages/craftcms-cms)[conquer/select2

Yii2 Select2 widget

1683.1k4](/packages/conquer-select2)

PHPackages © 2026

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