PHPackages                             dynamic/state-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/state-dropdown-field

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

dynamic/state-dropdown-field
============================

A simple state dropdown field for SilverStripe forms

2.1.0(7y ago)011.2k↓50%6[2 PRs](https://github.com/dynamic/silverstripe-state-dropdown-field/pulls)BSD-3-ClausePHP

Since Feb 3Pushed 2y ago4 watchersCompare

[ Source](https://github.com/dynamic/silverstripe-state-dropdown-field)[ Packagist](https://packagist.org/packages/dynamic/state-dropdown-field)[ RSS](/packages/dynamic-state-dropdown-field/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (6)Used By (0)

Silverstripe State Dropdown Field
=================================

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

A simple state dropdown field for SilverStripe forms. This dropdown defaults to US states and CA provinces but allows for the source to be overridden.

[![CI](https://github.com/dynamic/silverstripe-state-dropdown-field/actions/workflows/ci.yml/badge.svg)](https://github.com/dynamic/silverstripe-state-dropdown-field/actions/workflows/ci.yml)[![codecov](https://camo.githubusercontent.com/68252585623fa57bdee405f6fdb24c8c869c75382049b7c0a1dc30b43bbe906b/68747470733a2f2f636f6465636f762e696f2f67682f64796e616d69632f73696c7665727374726970652d73746174652d64726f70646f776e2d6669656c642f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/dynamic/silverstripe-state-dropdown-field)

[![Latest Stable Version](https://camo.githubusercontent.com/80a7df537833e0b48d51804b84e537b5fbcd707d2f1057235401c1bf2b63324c/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73746174652d64726f70646f776e2d6669656c642f762f737461626c65)](https://packagist.org/packages/dynamic/state-dropdown-field)[![Total Downloads](https://camo.githubusercontent.com/e73d89e50286128beca806702318b9f706c0553bb4c49775224ad0ce683c9801/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73746174652d64726f70646f776e2d6669656c642f646f776e6c6f616473)](https://packagist.org/packages/dynamic/state-dropdown-field)[![Latest Unstable Version](https://camo.githubusercontent.com/83c23451b9efd36a4a9672ffb8377933cc74537f2168f880b19e78096d8d448c/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73746174652d64726f70646f776e2d6669656c642f762f756e737461626c65)](https://packagist.org/packages/dynamic/state-dropdown-field)[![License](https://camo.githubusercontent.com/3a759c976e4494dc7dc40f0b69ee09e21d1066cd07ae71f466781c6d90b8b463/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73746174652d64726f70646f776e2d6669656c642f6c6963656e7365)](https://packagist.org/packages/dynamic/state-dropdown-field)

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

[](#requirements)

- Silverstripe ^4.0

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

[](#installation)

`composer require dynamic/state-dropdown-field`

License
-------

[](#license)

See [License](LICENSE.md)

Example usage
-------------

[](#example-usage)

```
public function getCMSFields(){
    $fields = parent::getCMSFields();

    $fields->addFieldToTab(
        'Root.MyTab',
        \Dynamic\StateDropdownField\Fields\StateDropdownField::create('States', 'States')
    );

    return $fields;
}
```

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.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~590 days

Total

5

Last Release

1028d ago

Major Versions

1.0.0 → 2.0.02018-02-13

1.0.x-dev → 2.1.02019-02-06

### Community

Maintainers

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

---

Top Contributors

[![muskie9](https://avatars.githubusercontent.com/u/870751?v=4)](https://github.com/muskie9 "muskie9 (15 commits)")[![jsirish](https://avatars.githubusercontent.com/u/1163643?v=4)](https://github.com/jsirish "jsirish (3 commits)")

---

Tags

silverstripestateformfielddropdown

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[kartik-v/yii2-widget-depdrop

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

814.9M18](/packages/kartik-v-yii2-widget-depdrop)[sheadawson/silverstripe-dependentdropdownfield

A silverstripe dropdown field that has it's options populated via ajax, based on the value of the field it depends on

28232.8k18](/packages/sheadawson-silverstripe-dependentdropdownfield)[burnbright/silverstripe-externalurlfield

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

109.6k1](/packages/burnbright-silverstripe-externalurlfield)[kinglozzer/multiselectfield

A sortable multiple select field for managing many-to-many relations

1341.2k2](/packages/kinglozzer-multiselectfield)[heloufir/filament-leaflet-geosearch

Implementation of LeafLet GeoSearch as a Filament Form Field

232.0k](/packages/heloufir-filament-leaflet-geosearch)

PHPackages © 2026

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