PHPackages                             dynamic/silverstripe-country-dropdown-field - 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. dynamic/silverstripe-country-dropdown-field

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

dynamic/silverstripe-country-dropdown-field
===========================================

A simple country dropdown field for SilverStripe forms

3.0.0(7mo ago)186.6k↑89.4%7[1 issues](https://github.com/dynamic/silverstripe-country-dropdown-field/issues)7BSD-3-ClausePHPPHP ^8.1CI passing

Since Feb 13Pushed 4d ago5 watchersCompare

[ Source](https://github.com/dynamic/silverstripe-country-dropdown-field)[ Packagist](https://packagist.org/packages/dynamic/silverstripe-country-dropdown-field)[ GitHub Sponsors](https://github.com/sponsors/dynamic)[ RSS](/packages/dynamic-silverstripe-country-dropdown-field/feed)WikiDiscussions 3 Synced 2d ago

READMEChangelog (9)Dependencies (2)Versions (14)Used By (7)

Silverstripe Country Dropdown Field
===================================

[](#silverstripe-country-dropdown-field)

A simple country dropdown field for SilverStripe forms.

[![CI](https://github.com/dynamic/silverstripe-country-dropdown-field/actions/workflows/ci.yml/badge.svg)](https://github.com/dynamic/silverstripe-country-dropdown-field/actions/workflows/ci.yml) [![Sponsors](https://camo.githubusercontent.com/475eb602a82fd79c0c52637caf359d39fd4a787ed0028b31af22a60fbe6dccb5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4769744875622d53706f6e736f72732d6666363962343f6c6f676f3d676974687562)](https://github.com/sponsors/dynamic)

[![Latest Stable Version](https://camo.githubusercontent.com/ce240dd2fa97f768f7a7a66a7a72b778388dd390f182e6727365717d382be8ab/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d636f756e7472792d64726f70646f776e2d6669656c642f762f737461626c65)](https://packagist.org/packages/dynamic/silverstripe-country-dropdown-field)[![Total Downloads](https://camo.githubusercontent.com/cc88a250b69ca95d1706e96c67e9b31e5ed33a845483b7494c1b84060a3ca115/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d636f756e7472792d64726f70646f776e2d6669656c642f646f776e6c6f616473)](https://packagist.org/packages/dynamic/silverstripe-country-dropdown-field)[![Latest Unstable Version](https://camo.githubusercontent.com/c1fa18316d4a23bae07a89e37a5e1cfc4cfd833913ac15b2817c97c8900a6ed0/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d636f756e7472792d64726f70646f776e2d6669656c642f762f756e737461626c65)](https://packagist.org/packages/dynamic/silverstripe-country-dropdown-field)[![License](https://camo.githubusercontent.com/8386e8bf11e9011239fc4a501fba8e13b4d297766ebe992e057824ee26c67e3a/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d636f756e7472792d64726f70646f776e2d6669656c642f6c6963656e7365)](https://packagist.org/packages/dynamic/silverstripe-country-dropdown-field)

Requirements
------------

[](#requirements)

- PHP: ^8.3
- silverstripe/recipe-core: ^6

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

[](#installation)

`composer require dynamic/silverstripe-country-dropdown-field`

Usage
-----

[](#usage)

`CountryDropdownField` extends SilverStripe's `DropdownField` and populates its source with a full list of countries drawn from SilverStripe's `IntlLocales` service. Use it anywhere you would use a standard form field:

```
use Dynamic\CountryDropdownField\Form\CountryDropdownField;

$fields->addFieldToTab(
    'Root.Main',
    CountryDropdownField::create('Country', 'Country')
);
```

You can also supply a custom country list by passing a source array as the third argument, just like a standard `DropdownField`.

Features
--------

[](#features)

- **Country Dropdown**: Pre-configured dropdown field with all countries
- **Intl Integration**: Uses SilverStripe's `IntlLocales` for standardized country data
- **Customizable Source**: Optional custom country list support
- **Form Field Extension**: Extends SilverStripe's `DropdownField` for seamless integration

Maintainers
-----------

[](#maintainers)

- [Dynamic](https://www.dynamicagency.com) ()

Bugtracker
----------

[](#bugtracker)

Bugs are tracked in the issues section of this repository. Before submitting an issue please read over existing issues to ensure yours is unique.

If the issue does look like a new bug:

- Create a new issue
- Describe the steps required to reproduce your issue, and the expected outcome. Unit tests, screenshots and screencasts can help here.
- Describe your environment as detailed as possible: SilverStripe version, Browser, PHP version, Operating System, any installed SilverStripe modules.

Please report security issues to the module maintainers directly. Please don't file security issues in the bugtracker.

Development and contribution
----------------------------

[](#development-and-contribution)

If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.

License
-------

[](#license)

See [License](LICENSE.md)

###  Health Score

54

—

FairBetter than 96% of packages

Maintenance63

Regular maintenance activity

Popularity35

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 54.8% 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 ~278 days

Recently: every ~308 days

Total

12

Last Release

4d ago

Major Versions

1.2.2 → 2.0.0-alpha12023-02-12

1.2.3 → 2.0.02023-08-26

2.x-dev → 3.0.02025-11-18

PHP version history (2 changes)3.0.0PHP ^8.1

3.x-devPHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/867942?v=4)[Dynamic](/maintainers/dynamic)[@dynamic](https://github.com/dynamic)

---

Top Contributors

[![jsirish](https://avatars.githubusercontent.com/u/1163643?v=4)](https://github.com/jsirish "jsirish (17 commits)")[![muskie9](https://avatars.githubusercontent.com/u/870751?v=4)](https://github.com/muskie9 "muskie9 (8 commits)")[![christohill](https://avatars.githubusercontent.com/u/2646218?v=4)](https://github.com/christohill "christohill (2 commits)")[![lhasselb](https://avatars.githubusercontent.com/u/2325775?v=4)](https://github.com/lhasselb "lhasselb (1 commits)")[![davejtoews](https://avatars.githubusercontent.com/u/9664035?v=4)](https://github.com/davejtoews "davejtoews (1 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (1 commits)")[![brasileric](https://avatars.githubusercontent.com/u/6453793?v=4)](https://github.com/brasileric "brasileric (1 commits)")

---

Tags

silverstripeformfielddropdowncountry

### Embed Badge

![Health badge](/badges/dynamic-silverstripe-country-dropdown-field/health.svg)

```
[![Health](https://phpackages.com/badges/dynamic-silverstripe-country-dropdown-field/health.svg)](https://phpackages.com/packages/dynamic-silverstripe-country-dropdown-field)
```

###  Alternatives

[kartik-v/yii2-widget-depdrop

Widget that enables setting up dependent dropdowns with nested dependencies (sub repo split from yii2-widgets)

845.2M18](/packages/kartik-v-yii2-widget-depdrop)[burnbright/silverstripe-externalurlfield

Provides SilverStripe with a DBField and FormField for handling external URLs.

109.6k1](/packages/burnbright-silverstripe-externalurlfield)[damianociarla/select-city-form-field-bundle

This Bundle provides a new form field that renders three select 'Country, Region, City' for Symfony2

101.9k](/packages/damianociarla-select-city-form-field-bundle)

PHPackages © 2026

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