PHPackages                             tapp/select-country-code - 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. tapp/select-country-code

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

tapp/select-country-code
========================

A Laravel Nova select country code field.

v1.2(5y ago)538.1k↓30.3%[1 issues](https://github.com/TappNetwork/nova-select-country-code/issues)MITPHPPHP &gt;=7.1.0CI passing

Since Nov 21Pushed 6mo ago4 watchersCompare

[ Source](https://github.com/TappNetwork/nova-select-country-code)[ Packagist](https://packagist.org/packages/tapp/select-country-code)[ RSS](/packages/tapp-select-country-code/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Laravel Nova Country Code Select Field
======================================

[](#laravel-nova-country-code-select-field)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0b3cfc3ff3c71cd2309d525ca0db36fd3ade70d2321d0b7be65529d480570f74/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746170702f73656c6563742d636f756e7472792d636f64652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tapp/select-country-code)[![Code Style Action Status - Pint](https://github.com/TappNetwork/nova-select-country-code/actions/workflows/pint.yml/badge.svg)](https://github.com/TappNetwork/nova-select-country-code/actions/workflows/pint.yml/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/be66fadb453767c70e44c5feed1b3175d539eb701c7cc197e11d04bcd33fd14d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746170702f73656c6563742d636f756e7472792d636f64652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tapp/select-country-code)

A country code select field for Laravel Nova.

Appearance
----------

[](#appearance)

### Form

[](#form)

[![select-country-code-form](https://raw.githubusercontent.com/TappNetwork/nova-select-country-code/main/docs/select-country-code-form.png)](https://raw.githubusercontent.com/TappNetwork/nova-select-country-code/main/docs/select-country-code-form.png)[![select-country-code-form1](https://raw.githubusercontent.com/TappNetwork/nova-select-country-code/main/docs/select-country-code-form1.png)](https://raw.githubusercontent.com/TappNetwork/nova-select-country-code/main/docs/select-country-code-form1.png)

### Detail

[](#detail)

[![select-country-code-detail](https://raw.githubusercontent.com/TappNetwork/nova-select-country-code/main/docs/select-country-code-detail.png)](https://raw.githubusercontent.com/TappNetwork/nova-select-country-code/main/docs/select-country-code-detail.png)

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

[](#installation)

Install using Composer:

```
composer require tapp/select-country-code
```

Publish the flag icons assets to the public project directory:

```
php artisan vendor:publish --tag=public --force
```

Usage
-----

[](#usage)

Add the field to your resource in the `fields` method:

```
use Tapp\SelectCountryCode\SelectCountryCode;

SelectCountryCode::make(__('Country Code')),
```

### Options

[](#options)

#### iconsDirectory

[](#iconsdirectory)

Default: `'/vendor/tapp/nova-select-country-code'`.

If you want to use your own custom image icons, provide the directory of the images with this option:

```
SelectCountryCode::make(__('Country Code'))
    ->iconsDirectory('/public/path/to/icons'),
```

#### iconsFormat

[](#iconsformat)

Default: `'svg'`.

The image format of the flag icons.

```
SelectCountryCode::make(__('Country Code'))
    ->iconsFormat('png'),
```

#### options

[](#options-1)

Array with the options to show on select. The array must contain the associative keys: `'label'`, `'country_code'`, and `'iso_code'`.

Default:

```
[
    ['label' => 'Afghanistan', 'country_code' => '+93', 'iso_code' => 'AF'],
    ['label' => 'Albania', 'country_code' => '+355', 'iso_code' => 'AL'],
    // ...
]
```

```
SelectCountryCode::make(__('Country Code'))
    ->options($optionsArray),
```

Credits
-------

[](#credits)

SVG of the countries' flags by:

-
-

Leveraged package
-----------------

[](#leveraged-package)

- [Vue Select](https://vue-select.org)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance42

Moderate activity, may be stable

Popularity31

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.4% 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 ~62 days

Total

3

Last Release

1879d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d72a8c345b7f4205dc1edaff8d05ce78f7fe1ec93dce0e52d29f18e885508d4f?d=identicon)[tapp](/maintainers/tapp)

![](https://www.gravatar.com/avatar/4c469e4e441a135287b2154a0a39f543893cbe1e2c3ab066e3e7c66a974a39e2?d=identicon)[scottgrayson](/maintainers/scottgrayson)

![](https://www.gravatar.com/avatar/5d0402fb770bca016dd6ee6a925501e0224783f1e5907788aee0ba7bc31c01ee?d=identicon)[andreiabohner](/maintainers/andreiabohner)

![](https://www.gravatar.com/avatar/5ac72d31fcf96191b82f452d6df6990219c5ffdfd7673859d3fa46cf1dd6193b?d=identicon)[johnwesely](/maintainers/johnwesely)

---

Top Contributors

[![andreia](https://avatars.githubusercontent.com/u/38911?v=4)](https://github.com/andreia "andreia (19 commits)")[![swilla](https://avatars.githubusercontent.com/u/304159?v=4)](https://github.com/swilla "swilla (3 commits)")

---

Tags

codecountrycountry-codefieldhacktoberfestlaravelnovaselectlaravelfieldselectnovacountry code

### Embed Badge

![Health badge](/badges/tapp-select-country-code/health.svg)

```
[![Health](https://phpackages.com/badges/tapp-select-country-code/health.svg)](https://phpackages.com/packages/tapp-select-country-code)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[timothyasp/nova-color-field

A Laravel Nova Color Picker field.

781.6M5](/packages/timothyasp-nova-color-field)[alexwenzel/nova-dependency-container

A Laravel Nova 4 form container for grouping fields that depend on other field values.

461.0M2](/packages/alexwenzel-nova-dependency-container)[inspheric/nova-defaultable

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

51174.8k1](/packages/inspheric-nova-defaultable)[optimistdigital/nova-notes-field

This Laravel Nova package adds a notes field to Nova's arsenal of fields.

52139.5k](/packages/optimistdigital-nova-notes-field)[outl1ne/nova-color-field

A Laravel Nova Color Picker field.

26249.4k](/packages/outl1ne-nova-color-field)

PHPackages © 2026

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