PHPackages                             dniccum/nova-state-select - 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. dniccum/nova-state-select

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dniccum/nova-state-select
=========================

A Laravel Nova field that is a select dropdown pre-populated with all of the states within the US.

v1.0.0(6y ago)47.6k1[1 PRs](https://github.com/dniccum/nova-state-select/pulls)MITPHPPHP &gt;=7.1.0

Since Jul 1Pushed 2y agoCompare

[ Source](https://github.com/dniccum/nova-state-select)[ Packagist](https://packagist.org/packages/dniccum/nova-state-select)[ RSS](/packages/dniccum-nova-state-select/feed)WikiDiscussions master Synced 1mo ago

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

Laravel Nova State/Territory Select Field
=========================================

[](#laravel-nova-stateterritory-select-field)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f1f8fcd3166fe9912eb29d4fc9a075c31e9759a5971811adcdb6a0ca42c44020/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646e696363756d2f6e6f76612d73746174652d73656c6563742e7376673f7374796c653d666c61742d73717561726526636f6c6f723d23304537464330)](https://packagist.org/packages/dniccum/nova-state-select)[![License](https://camo.githubusercontent.com/0700d11410139f49d4c6d7e14d8714b5af21e7826370d38bddca806f996e9893/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f646e696363756d2f6e6f76612d73746174652d73656c6563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dniccum/nova-state-select)[![Total Downloads](https://camo.githubusercontent.com/f3e0752204611eb1113bc471a40dbedae1bc1ff689ba70bc7b1a9a3c847fa7b8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646e696363756d2f6e6f76612d73746174652d73656c6563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dniccum/nova-state-select)

[![Image 1](https://github.com/dniccum/nova-state-select/raw/master/screenshots/screenshot-1.png "State Select input")](https://github.com/dniccum/nova-state-select/raw/master/screenshots/screenshot-1.png)

Features
--------

[](#features)

- Pre-populates a select dropdown field with all of the states in the United States
- Works with the Place field
- Use the full state name or the 2 letter abbreviation
- Optionally include the US territories
- Add custom state abbreviations or state names

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

[](#installation)

To install this field, use the installation code below:

```
composer require dniccum/nova-state-select

```

Code
----

[](#code)

To use the field, add the following code to your Nova resource. As this is a field, all of the default field properties can be applied.

```
use Dniccum\StateSelect\StateSelect;

StateSelect::make('State')
```

Options
-------

[](#options)

### useFullNames

[](#usefullnames)

```
StateSelect::make('State')
    ->useFullNames()
```

By default, this field uses the two-letter state abbreviations. Add this method if you would like to use and store the full state name.

### includeTerritories

[](#includeterritories)

```
StateSelect::make('State')
    ->includeTerritories()
```

Adds the US territories and military territories as follows:

- American Samoa
- District of Columbia
- Federated States of Micronesia
- Guam
- Marshall Islands
- Northern Mariana Islands
- Palau
- Puerto Rico
- Virgin Islands
- Armed Forces Africa
- Armed Forces Americas
- Armed Forces Pacific

### customValues

[](#customvalues)

```
StateSelect::make('State')
    ->customValues([
        'Ontario',
        'Alberta'
    ])
```

If you would like to add any additional territories or provinces to the list, add them as an array.

**Note:** If you have used the `->useFullNames()` method, the values provided MUST be an associative array with the abbreviation first and the name second, like so:

```
StateSelect::make('State')
    ->customValues([
        'ON' => 'Ontario',
        'AB' => 'Alberta'
    ])
```

Credits
-------

[](#credits)

- [Doug Niccum](https://github.com/dniccum)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](./LICENSE) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2513d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9fe997126bcc6a6026a2f6c335ce125055af46178c82faa24d3087b7d5dc0b44?d=identicon)[dniccum](/maintainers/dniccum)

---

Top Contributors

[![dniccum](https://avatars.githubusercontent.com/u/2816415?v=4)](https://github.com/dniccum "dniccum (13 commits)")

---

Tags

laravellaravel-novalaravel-nova-fieldselectstatelaravelstateselectnova

### Embed Badge

![Health badge](/badges/dniccum-nova-state-select/health.svg)

```
[![Health](https://phpackages.com/badges/dniccum-nova-state-select/health.svg)](https://phpackages.com/packages/dniccum-nova-state-select)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[ziffmedia/nova-select-plus

A Nova select field for simple and complex select inputs

96578.4k1](/packages/ziffmedia-nova-select-plus)[inspheric/nova-defaultable

Default values for Nova fields when creating resources and running resource actions.

51174.8k1](/packages/inspheric-nova-defaultable)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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